-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile.in
34 lines (26 loc) · 1002 Bytes
/
Makefile.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
TARGETS = src/setr/libsetr.cma src/setr/libsetr.cmxa src/main/setr_test.byte src/main/setr_test.native
BINDIR ?= $(shell opam config var bin)
.PHONY: all clean distclean install uninstall
all:
ocamlbuild -use-ocamlfind -plugin-tag 'package(cppo_ocamlbuild)' -no-links $(TARGETS)
clean:
ocamlbuild -clean
distclean: clean
rm -f Makefile _tags META src/setr/libsetr.mllib
INCLUDED_FILES = \
$(wildcard _build/src/setr/*.cmi)\
$(wildcard _build/src/setr/*.cmo)\
$(wildcard _build/src/setr/*.cmt)\
$(wildcard _build/src/setr/*.cmx)\
$(wildcard _build/src/setr/*.o)\
$(wildcard _build/src/setr/*.annot)\
$(wildcard _build/src/setr/*.cma)\
$(wildcard _build/src/setr/*.cmxa)\
$(wildcard _build/src/setr/*.a)
install: all
ocamlfind install setr META $(INCLUDED_FILES)
install -m 0755 _build/src/main/setr_test.native $(BINDIR)/setr
install -m 0755 _build/src/main/setr_test.byte $(BINDIR)/setr.debug
uninstall:
ocamlfind remove setr
rm -f $(BINDIR)/setr $(BINDIR)/setr.debug