Mercurial > urweb
comparison Makefile @ 0:502c6d622477
Initial skeleton
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 26 Jan 2008 10:06:22 -0500 |
parents | |
children | 4202f6eda946 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:502c6d622477 |
---|---|
1 all: smlnj mlton | |
2 | |
3 .PHONY: all smlnj mlton clean | |
4 | |
5 smlnj: src/lacweb.cm | |
6 mlton: bin/lacweb | |
7 | |
8 clean: | |
9 rm -f src/*.mlton.grm.* src/*.mlton.lex.* \ | |
10 src/lacweb.cm src/lacweb.mlb | |
11 rm -rf .cm src/.cm | |
12 | |
13 src/lacweb.cm: src/prefix.cm src/sources | |
14 cat src/prefix.cm src/sources \ | |
15 >src/lacweb.cm | |
16 | |
17 src/lacweb.mlb: src/prefix.mlb src/sources src/suffix.mlb | |
18 cat src/prefix.mlb src/sources src/suffix.mlb \ | |
19 | sed 's/^\(.*\).grm$$/\1.mlton.grm.sig\n\1.mlton.grm.sml/' \ | |
20 | sed 's/^\(.*\).lex$$/\1.mlton.lex.sml/' \ | |
21 >src/lacweb.mlb | |
22 | |
23 %.mlton.lex: %.lex | |
24 cp $< $@ | |
25 %.mlton.grm: %.grm | |
26 cp $< $@ | |
27 | |
28 %.mlton.lex.sml: %.mlton.lex | |
29 mllex $< | |
30 | |
31 %.mlton.grm.sig %.mlton.grm.sml: %.mlton.grm | |
32 mlyacc $< | |
33 | |
34 MLTON := mlton | |
35 | |
36 ifdef DEBUG | |
37 MLTON += -const 'Exn.keepHistory true' | |
38 endif | |
39 | |
40 bin/lacweb: src/lacweb.mlb src/*.sig src/*.sml | |
41 $(MLTON) -output $@ src/lacweb.mlb |