X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=examples%2FMakefile;h=002f48177b9e72c6c5a9bf3548623ae3e93844dd;hp=69da81e0a54f33043326cf838ff8ccd3e5fcfa0a;hb=195fd2318fb0ad21c2fd60f61e7df72a8f25d12c;hpb=f62b6f07bbf1eefcf552163d8f7daa6e0862ed5d diff --git a/examples/Makefile b/examples/Makefile index 69da81e..002f481 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,15 +1,23 @@ -build: MiseRafturai.hs SmallFile.hs SSL.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 - ghc --make SSL -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 SSL *.hi *.o + rm -f $(TARGETS) *.hi *.o MiseRafturai.hs: mise-rafturai.html lucu-implant-file -m MiseRafturai -o $@ $<