X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=examples%2FMakefile;h=002f48177b9e72c6c5a9bf3548623ae3e93844dd;hb=195fd2318fb0ad21c2fd60f61e7df72a8f25d12c;hp=5200e84479c35e7a8296d3fb84454a0c01e61991;hpb=e53a2f3202f763e844de725712f1bf26b82cd41f;p=Lucu.git diff --git a/examples/Makefile b/examples/Makefile index 5200e84..002f481 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,14 +1,23 @@ -build: MiseRafturai.hs SmallFile.hs - ghc --make HelloWorld -threaded -O3 -fwarn-unused-imports - ghc --make Implanted -threaded -O3 -fwarn-unused-imports - ghc --make ImplantedSmall -threaded -O3 -fwarn-unused-imports - ghc --make Multipart -threaded -O3 -fwarn-unused-imports +TARGETS = \ + HelloWorld \ + MiseRafturai \ + Implanted \ + ImplantedSmall \ + Multipart \ + SSL \ + StaticDir \ + $(NULL) + +build: $(TARGETS) + +%: %.hs + ghc --make $@ -threaded -O3 -fwarn-unused-imports run: build ./HelloWorld clean: - rm -f HelloWorld Implanted MiseRafturai.hs ImplantedSmall SmallFile.hs Multipart *.hi *.o + rm -f $(TARGETS) *.hi *.o MiseRafturai.hs: mise-rafturai.html lucu-implant-file -m MiseRafturai -o $@ $<