X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=examples%2FMakefile;h=abd928eb482b505dc60b8a194b7d65d2e29192ba;hb=b923d454928e3d01134b15d6072b6d3edf7a15ca;hp=02537764fcd3680dc614a616c4316848c5decab0;hpb=7b141208b4c741de208ec147eff6b2462ce26e80;p=Lucu.git diff --git a/examples/Makefile b/examples/Makefile index 0253776..abd928e 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,14 +1,29 @@ -build: MiseRafturai.hs - ghc --make HelloWorld -threaded -O3 - ghc --make Implanted -threaded -O3 +TARGETS = \ + HelloWorld \ + MiseRafturai \ + Implanted \ + ImplantedSmall \ + Multipart \ + SSL \ + $(NULL) + +build: $(TARGETS) + +%: %.hs + ghc --make $@ -threaded -O3 -fwarn-unused-imports run: build ./HelloWorld clean: - rm -f HelloWorld Implanted MiseRafturai.hs *.hi *.o + rm -f $(TARGETS) *.hi *.o MiseRafturai.hs SmallFile.hs MiseRafturai.hs: mise-rafturai.html lucu-implant-file -m MiseRafturai -o $@ $< -.PHONY: build run clean \ No newline at end of file +ImplantedSmall.hs: SmallFile.hs + +SmallFile.hs: small-file.txt + lucu-implant-file -m SmallFile -o $@ $< + +.PHONY: build run clean