]> gitweb @ CieloNegro.org - Lucu.git/blobdiff - examples/Makefile
Added new example.
[Lucu.git] / examples / Makefile
index e1c2c5aecc6979afd98f191bc126b3b19462e6bf..2727e6404854808c9a8c1ca4013121b2d7705a30 100644 (file)
@@ -1,10 +1,18 @@
-build:
-       ghc --make HelloWorld -threaded -fglasgow-exts -O3
+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
 
 run: build
        ./HelloWorld
 
 clean:
-       rm -f HelloWorld *.hi *.o
+       rm -f HelloWorld Implanted MiseRafturai.hs ImplantedSmall SmallFile.hs *.hi *.o
 
-.PHONY: build run clean
\ No newline at end of file
+MiseRafturai.hs: mise-rafturai.html
+       lucu-implant-file -m MiseRafturai -o $@ $<
+
+SmallFile.hs: small-file.txt
+       lucu-implant-file -m SmallFile -o $@ $<
+
+.PHONY: build run clean