]> gitweb @ CieloNegro.org - Lucu.git/blob - examples/Makefile
Merge branch 'parsable'
[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 SSL: SSL.hs
14         -ghc -Wall --make $@ -threaded -O3 -idist -odir dist -hidir dist
15
16 %: %.hs
17         ghc -Wall --make $@ -threaded -O3 -idist -odir dist -hidir dist
18
19 run: build
20         ./HelloWorld
21
22 clean:
23         rm -rf $(TARGETS) dist
24
25 Implanted.hs: dist/MiseRafturai.hs
26 dist/MiseRafturai.hs: mise-rafturai.html $(IMPLANT)
27         mkdir -p dist
28         $(IMPLANT) -m MiseRafturai -o $@ $< || (rm -f $@; exit 1)
29
30 ImplantedSmall.hs: dist/SmallFile.hs
31 dist/SmallFile.hs: small-file.txt $(IMPLANT)
32         mkdir -p dist
33         $(IMPLANT) -m SmallFile -t "text/plain; charset=\"UTF-8\"" -o $@ $< || (rm -f $@; exit 1)
34
35 .PHONY: build run clean