X-Git-Url: http://git.cielonegro.org/gitweb.cgi?p=Lucu.git;a=blobdiff_plain;f=examples%2FMakefile;h=606117f31f43ffcd6489b0d3370668265979d997;hp=26d6670f49a5c2d4df6cd5cbabf0e5c134f6f1a4;hb=b22e702f8161447a460847c6e6c97104c150534f;hpb=ea2b7838f1b3d9d4923a220a601be2e04cc559d7 diff --git a/examples/Makefile b/examples/Makefile index 26d6670..606117f 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -1,29 +1,35 @@ TARGETS = \ HelloWorld \ - MiseRafturai \ Implanted \ ImplantedSmall \ Multipart \ SSL \ $(NULL) +IMPLANT ?= ../dist/build/lucu-implant-file/lucu-implant-file + build: $(TARGETS) +SSL: SSL.hs + -ghc -Wall --make $@ -threaded -O3 -idist -odir dist -hidir dist + %: %.hs - ghc --make $@ -threaded -O3 -Wall + ghc -Wall --make $@ -threaded -O3 -idist -odir dist -hidir dist run: build ./HelloWorld clean: - rm -f $(TARGETS) *.hi *.o MiseRafturai.hs SmallFile.hs - -MiseRafturai.hs: mise-rafturai.html - lucu-implant-file -m MiseRafturai -o $@ $< + rm -rf $(TARGETS) dist -ImplantedSmall.hs: SmallFile.hs +Implanted.hs: dist/MiseRafturai.hs +dist/MiseRafturai.hs: mise-rafturai.html $(IMPLANT) + mkdir -p dist + $(IMPLANT) -m MiseRafturai -o $@ $< -SmallFile.hs: small-file.txt - lucu-implant-file -m SmallFile -o $@ $< +ImplantedSmall.hs: dist/SmallFile.hs +dist/SmallFile.hs: small-file.txt $(IMPLANT) + mkdir -p dist + $(IMPLANT) -m SmallFile -t "text/plain; charset=\"UTF-8\"" -o $@ $< .PHONY: build run clean