]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/Makefile
Use base64-bytestring instead of dataenc
[Lucu.git] / examples / Makefile
index 2727e6404854808c9a8c1ca4013121b2d7705a30..abd928eb482b505dc60b8a194b7d65d2e29192ba 100644 (file)
@@ -1,17 +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
+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 Implanted MiseRafturai.hs ImplantedSmall SmallFile.hs *.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 $@ $<