Makefile 446 Bytes
Newer Older
1
2
3
all: main.native

.PHONY: main.native
Wilke Pierre's avatar
Wilke Pierre committed
4
5
6
7
8

src/config.ml: configure
	./configure

main.native: src/config.ml
9
10
11
12
13
14
	make -C alpaga
	./alpaga/alpaga \
			-g expr_grammar_action.g \
			-pml src/generated_parser.ml \
			-t grammar.html
	make -C src
15
	ln -sf src/main.native main.native
16
17
18
19
20
21
22
23
24
25

clean:
	make -C alpaga clean
	rm -f src/generated_parser.ml
	rm -f grammar.html
	make -C src clean
	rm -f main.native
	make -C tests clean

test: main.native
26
	make -C tests