]> gitweb @ CieloNegro.org - Lucu.git/blob - examples/Makefile
Merge branch 'attoparsec'
[Lucu.git] / examples / Makefile
1 TARGETS = \
2         HelloWorld \
3         Implanted \
4         ImplantedSmall \
5         Multipart \
6         SSL \
7         $(NULL)
8
9 IMPLANT ?= ../dist/build/lucu-implant-file/lucu-implant-file
10
11 build: $(TARGETS)
12
13 %: %.hs
14         ghc -Wall --make $@ -threaded -O3 -idist -odir dist -hidir dist
15
16 run: build
17         ./HelloWorld
18
19 clean:
20         rm -rf $(TARGETS) dist
21
22 Implanted.hs: dist/MiseRafturai.hs
23 dist/MiseRafturai.hs: mise-rafturai.html $(IMPLANT)
24         mkdir -p dist
25         $(IMPLANT) -m MiseRafturai -o $@ $<
26
27 ImplantedSmall.hs: dist/SmallFile.hs
28 dist/SmallFile.hs: small-file.txt $(IMPLANT)
29         mkdir -p dist
30         $(IMPLANT) -m SmallFile -o $@ $<
31
32 .PHONY: build run clean