]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/Makefile
Changes from 0.4 to 0.4.1
[Lucu.git] / examples / Makefile
index 02537764fcd3680dc614a616c4316848c5decab0..002f48177b9e72c6c5a9bf3548623ae3e93844dd 100644 (file)
@@ -1,14 +1,28 @@
-build: MiseRafturai.hs
-       ghc --make HelloWorld -threaded -O3
-       ghc --make Implanted -threaded -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 Implanted MiseRafturai.hs *.hi *.o
+       rm -f $(TARGETS) *.hi *.o
 
 MiseRafturai.hs: mise-rafturai.html
        lucu-implant-file -m MiseRafturai -o $@ $<
 
-.PHONY: build run clean
\ No newline at end of file
+SmallFile.hs: small-file.txt
+       lucu-implant-file -m SmallFile -o $@ $<
+
+.PHONY: build run clean