Project

General

Profile

Revision bed8ea64 Makefile.in

View differences:

Makefile.in
12 12

  
13 13
lustrec:
14 14
	@echo Compiling binary lustrec
15
	@$(OCAMLBUILD) src/main_lustre_compiler.native
16
	@mkdir -p $(LOCAL_BINDIR)
17
	@mv _build/src/main_lustre_compiler.native $(LOCAL_BINDIR)/lustrec
15
	@make -C src lustrec
18 16

  
19 17
doc:
20 18
	@echo Generating doc
21
	@$(OCAMLBUILD) lustrec.docdir/index.html
22
	@rm -rf $(LOCAL_DOCDIR)
23
	@cp -rf _build/lustrec.docdir $(LOCAL_DOCDIR)
19
	@make -C src doc
24 20

  
25 21
dot: doc
26
	$(OCAMLBUILD) lustrec.docdir/lustrec.dot
27
	dot -T ps -o lustrec.dot _build/lustrec.docdir/lustrec.dot
28
	mv _build/lustrec.docdir/lustrec.dot $(LOCAL_DOCDIR)
22
	@make -C src dot
29 23

  
30 24
clean:
31
	$(OCAMLBUILD) -clean
25
	@make -C src clean
32 26

  
33 27
dist-clean: clean
34
	rm -f Makefile myocamlbuild.ml config.log config.status configure
35
	rm -f include/*.lusic include/math.h include/conv.h
36 28

  
37
%.lusic: %.lusi
29
%.lusic: %.lusi 
38 30
	@echo Compiling $<
39 31
	@$(LOCAL_BINDIR)/lustrec -verbose 0 -d include $< 
40 32

  
41
compile-lusi: $(LUSI_LIBS:%.lusi=%.lusic)
33
compile-lusi: lustrec $(LUSI_LIBS:%.lusi=%.lusic)
42 34

  
43 35
install: compile-lusi
44 36
	mkdir -p ${bindir}

Also available in: Unified diff