Makefile 1.17 KB
Newer Older
1
2
3
ifndef LURETTE_PATH
  LURETTE_PATH=$(PWD)
endif
4

erwan's avatar
erwan committed
5
all:build 
6

7
-include ./Makefile.version
erwan's avatar
erwan committed
8
-include ./Makefile.local
9

10
11
###################################################
# Some more clutches because oasis does not support camlidl
12
polka/vector.ml: polka/vector.idl
13
14
	cd polka; make idl

erwan's avatar
erwan committed
15
lutin-utils/src/lutinUtils.ml: lutin-utils/src/lutinUtils.idl
16
	cd lutin-utils/src/; make 
17

18
###################################################
19
build:  setup.data
20
	ocaml setup.ml -build 
21

erwan's avatar
erwan committed
22
setup.ml:_oasis lutin/src/version.ml polka/vector.ml lutin-utils/src/lutinUtils.ml
23
24
	oasis setup 

25
BINPATH=$(shell opam config var prefix)
26
27
setup.data:configure
configure: setup.ml
28
	ocaml setup.ml  -configure --prefix $(BINPATH)
29
30
31
32
33

.PHONY:doc
doc:
	ocaml setup.ml -doc

34
man:
erwan's avatar
erwan committed
35
	cd doc/lutin-man/ && make || echo "cannot build the doc";exit 0
36
37
38


install:
39
	ocaml setup.ml -install
40
	cp lutin/src/lut4c_stubs.h $(shell ocamlc -where)/../lutin/
41
42
43
44
45
46
47
48
49
50
51
52
53
54

uninstall:
	ocaml setup.ml -uninstall

reinstall:
	ocaml setup.ml -reinstall

distclean:
	ocaml setup.ml -distclean
	rm -rf _build/src


.PHONY: test slink
test: slink cpcomp
55
	cd examples && make test
56

57
58

###################################################
59
60
# for developpers
include ./Makefile.dev