X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=examples%2FMakefile;h=26d6670f49a5c2d4df6cd5cbabf0e5c134f6f1a4;hb=ea2b7838f1b3d9d4923a220a601be2e04cc559d7;hp=69da81e0a54f33043326cf838ff8ccd3e5fcfa0a;hpb=73b5fba4907604681d778d3bd54cd65fd84b4454;p=Lucu.git diff --git a/examples/Makefile b/examples/Makefile index 69da81e..26d6670 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,19 +1,28 @@ -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 \ + $(NULL) + +build: $(TARGETS) + +%: %.hs + ghc --make $@ -threaded -O3 -Wall run: build ./HelloWorld clean: - rm -f HelloWorld Implanted MiseRafturai.hs ImplantedSmall SmallFile.hs Multipart SSL *.hi *.o + rm -f $(TARGETS) *.hi *.o MiseRafturai.hs SmallFile.hs MiseRafturai.hs: mise-rafturai.html lucu-implant-file -m MiseRafturai -o $@ $< +ImplantedSmall.hs: SmallFile.hs + SmallFile.hs: small-file.txt lucu-implant-file -m SmallFile -o $@ $<