X-Git-Url: http://git.cielonegro.org/gitweb.cgi?a=blobdiff_plain;f=examples%2FMakefile;h=002f48177b9e72c6c5a9bf3548623ae3e93844dd;hb=195fd2318fb0ad21c2fd60f61e7df72a8f25d12c;hp=e1c2c5aecc6979afd98f191bc126b3b19462e6bf;hpb=453cecf83e146e1ec23545fb371f7b91ab6adea7;p=Lucu.git diff --git a/examples/Makefile b/examples/Makefile index e1c2c5a..002f481 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,10 +1,28 @@ -build: - ghc --make HelloWorld -threaded -fglasgow-exts -O3 +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 *.hi *.o + rm -f $(TARGETS) *.hi *.o + +MiseRafturai.hs: mise-rafturai.html + lucu-implant-file -m MiseRafturai -o $@ $< + +SmallFile.hs: small-file.txt + lucu-implant-file -m SmallFile -o $@ $< -.PHONY: build run clean \ No newline at end of file +.PHONY: build run clean