]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/Makefile
Use base64-bytestring instead of dataenc
[Lucu.git] / examples / Makefile
index e1c2c5aecc6979afd98f191bc126b3b19462e6bf..abd928eb482b505dc60b8a194b7d65d2e29192ba 100644 (file)
@@ -1,10 +1,29 @@
-build:
-       ghc --make HelloWorld -threaded -fglasgow-exts -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 *.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 $@ $<
 
-.PHONY: build run clean
\ No newline at end of file
+.PHONY: build run clean