]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/Makefile
The library now compiles, and I'm now working on ImplantFile.hs
[Lucu.git] / examples / Makefile
index 5200e84479c35e7a8296d3fb84454a0c01e61991..26d6670f49a5c2d4df6cd5cbabf0e5c134f6f1a4 100644 (file)
@@ -1,18 +1,28 @@
-build: MiseRafturai.hs SmallFile.hs
-       ghc --make HelloWorld -threaded -O3 -fwarn-unused-imports
-       ghc --make Implanted -threaded -O3 -fwarn-unused-imports
-       ghc --make ImplantedSmall -threaded -O3 -fwarn-unused-imports
-       ghc --make Multipart -threaded -O3 -fwarn-unused-imports
+TARGETS = \
+       HelloWorld \
+       MiseRafturai \
+       Implanted \
+       ImplantedSmall \
+       Multipart \
+       SSL \
+       $(NULL)
+
+build: $(TARGETS)
+
+%: %.hs
+       ghc --make $@ -threaded -O3 -Wall
 
 run: build
        ./HelloWorld
 
 clean:
-       rm -f HelloWorld Implanted MiseRafturai.hs ImplantedSmall SmallFile.hs Multipart *.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 $@ $<