Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / Makefile.in @ master

History | View | Annotate | Download (3.5 KB)

1 1e48ef45 ploc
prefix=@prefix@
2
exec_prefix=@exec_prefix@
3
bindir=@bindir@
4 53206908 xthirioux
datarootdir = ${prefix}/share
5 1e48ef45 ploc
includedir = ${prefix}/include
6
7 30f46c0c ploc
LUSI_LIBS=include/lustrec_math.lusi include/simulink_math_fcn.lusi include/conv.lusi
8 04a63d25 xthirioux
LUSI_MPFR_LIB=include/mpfr_lustre.lusi
9 1e48ef45 ploc
LOCAL_BINDIR=bin
10
LOCAL_DOCDIR=doc/manual
11 a1230f68 ploc
BIN_TARGETS = lustrec lustret @lustresf_target@
12 1e48ef45 ploc
13 3a4cc4d5 ploc
DEFAULT_TEST_TARGET=COMPIL_LUS\|MAKE\|BIN\|DIFF
14 a1230f68 ploc
DEFAULT_EXCLUDE_TEST=LUSTRET
15 3a4cc4d5 ploc
16 a1230f68 ploc
all: $(BIN_TARGETS)
17 85da3a4b ploc
18 5ae8db15 ploc
lustrec:
19 1e48ef45 ploc
	@echo Compiling binary lustrec
20 53206908 xthirioux
	@make -C src lustrec
21 5ae8db15 ploc
22 85da3a4b ploc
lustret:
23
	@echo Compiling binary lustret
24
	@make -C src lustret
25 1e48ef45 ploc
26 3b4b7a2e Christophe Garion
@lustresf@
27 bad7b67a Christophe Garion
28 d057583b Eric NOULARD
configure: configure.ac
29 084a3cb5 Eric NOULARD
	@echo configure.ac has changed relaunching autoconf
30 d057583b Eric NOULARD
	@autoconf
31 084a3cb5 Eric NOULARD
32 03bb8f64 Eric NOULARD
Makefile: Makefile.in config.status configure
33 084a3cb5 Eric NOULARD
	@echo Makefile.in has changed relaunching autoconf
34 03bb8f64 Eric NOULARD
	@./config.status --recheck
35 084a3cb5 Eric NOULARD
36 1e48ef45 ploc
doc:
37
	@echo Generating doc
38 53206908 xthirioux
	@make -C src doc
39 1e48ef45 ploc
40
dot: doc
41 53206908 xthirioux
	@make -C src dot
42 1e48ef45 ploc
43 85da3a4b ploc
clean: clean-lusic
44 53206908 xthirioux
	@make -C src clean
45 a86bae77 ploc
46 974f92ac Eric NOULARD
dist-src-clean: clean
47 30f46c0c ploc
	@rm -f config.log config.status include/*.lusic include/lustrec_math.h include/simulink_math_fcn.h include/conv.h include/mpfr_lustre.h
48 c80e92d1 ploc
	@rm -f Makefile ./src/Makefile ./src/pluginList.ml ./src/version.ml ./src/_tags ./src/ocaml_utils.ml
49 974f92ac Eric NOULARD
50
DIST_ARCHIVE_NAME=lustrec-$(shell $(LOCAL_BINDIR)/lustrec -version | grep version | cut -d, -f 2 | sed -e "s/ version //" -e "s/ (/-/" -e "s/ /-/" -e "s/\//-/" -e "s/)//")-src.tar.gz
51
52
dist-gzip: $(LOCAL_BINDIR)/lustrec dist-src-clean
53
	@rm -f $(shell ls ../*lustrec*src*tar.gz)
54
	@tar zcvf ../$(DIST_ARCHIVE_NAME) -C .. --exclude-vcs --exclude=Makefile  --exclude=$(LOCAL_BINDIR) $(shell basename $(PWD))
55
	@echo "Source distribution built: ../$(DIST_ARCHIVE_NAME)"
56
57
dist-clean: dist-src-clean
58 fb716d2c ploc
	@rm -f configure Makefile opam share/FindLustre.cmake
59 1e48ef45 ploc
60 2e6dfb46 enoulard
%.lusic: %.lusi
61 1e48ef45 ploc
	@echo Compiling $<
62 8446bf03 ploc
	@$(LOCAL_BINDIR)/lustrec -verbose 0 -I include -d include $<
63 1e48ef45 ploc
64 3cb2f745 ploc
clean-lusic:
65 82dad07e enoulard
	@rm -f $(LUSI_LIBS:%.lusi=%.lusic)
66 04a63d25 xthirioux
	@rm -f $(LUSI_MPFR_LIB:%.lusi=%.lusic)
67 3cb2f745 ploc
68 2e6dfb46 enoulard
compile-lusi: $(LUSI_LIBS:%.lusi=%.lusic)
69 1e48ef45 ploc
70 04a63d25 xthirioux
compile-mpfr-lusi: $(LUSI_MPFR_LIB)
71
	@echo Compiling $<
72
	@$(LOCAL_BINDIR)/lustrec -verbose 0 -mpfr 1 -d include $<
73
74 fa880262 ploc
install-include: compile-lusi compile-mpfr-lusi
75 6b2f1b5d Christophe Garion
	install -m 0655 include/* ${includedir}/lustrec
76 7629d67b ploc
77 86aadaf1 ploc
install-base: clean-lusic
78 1e48ef45 ploc
	mkdir -p ${bindir}
79 0179e76f Christophe Garion
	for x in $(BIN_TARGETS); do install -m 0755 $(LOCAL_BINDIR)/$$x ${bindir}; done
80 d2d9d4cb ploc
	mkdir -p ${datarootdir}
81 5c3b45a0 ploc
	install -m 0655 share/*.cmake ${datarootdir}
82 6b2f1b5d Christophe Garion
	mkdir -p ${includedir}/lustrec
83
	install -m 0655 include/* ${includedir}/lustrec
84 1e48ef45 ploc
85 bad7b67a Christophe Garion
install: install-base install-include
86 86aadaf1 ploc
87 0179e76f Christophe Garion
uninstall:
88
	rm -Rf ${includedir}/lustrec
89
	rm -Rf ${datarootdir}/share/FindLustre.cmake
90
	for x in $(BIN_TARGETS); do rm -f ${bindir}/$$x; done
91
92 0cddb853 ploc
test-config: ${bindir}/lustrec
93 a86bae77 ploc
	if @PATH_TO_TESTS_DEFINED@; then \
94
	  mkdir -p test; \
95
	  cd test; \
96 27446b88 ploc
	  cmake -DLUSTRE_PATH_HINT=${bindir} -DSUBPROJ=@CDASHSUBPROJ@ ../@PATH_TO_TESTS@; \
97 a86bae77 ploc
	fi
98
99
test-no-submit: test-config
100 a1230f68 ploc
	cd test; ctest -M Experimental -T Start -T Update -T Configure -T Build -T Test -R ${DEFAULT_TEST_TARGET} -E ${DEFAULT_EXCLUDE_TEST}
101 a86bae77 ploc
102
test-submit: test-config
103 a1230f68 ploc
	cd test; ctest -M Experimental -T Submit -R ${DEFAULT_TEST_TARGET} -E ${DEFAULT_EXCLUDE_TEST}
104
105 a86bae77 ploc
106
test: test-config
107 a1230f68 ploc
	cd test; ctest -D Experimental -R ${DEFAULT_TEST_TARGET} -E ${DEFAULT_EXCLUDE_TEST}
108
109 a86bae77 ploc
110
test-full-no-submit: test-config
111 bad7b67a Christophe Garion
	cd test; ctest -M Experimental -T Start -T Update -T Configure -T Build -T Test
112 a86bae77 ploc
113
test-full-submit: test-config
114 bad7b67a Christophe Garion
	cd test; ctest -M Experimental -T Submit
115 a86bae77 ploc
116
test-full: test-config
117 bad7b67a Christophe Garion
	cd test; ctest -D Experimental
118 a86bae77 ploc
119 2511454c Christophe Garion
tests:
120
	@echo Launching tests
121
	@make -C src tests
122 1e48ef45 ploc
123 2511454c Christophe Garion
.PHONY: all compile-lusi doc dot lustrec lustrec.odocl clean install dist-clean tests