forked from camlp4/camlp4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (35 loc) · 807 Bytes
/
Makefile
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
OB := ocamlbuild -classic-display -no-ocamlfind
DESTDIR=
-include config.sh
OB += $(OB_FLAGS)
.PHONY: default
default: byte
.PHONY: byte
byte:
$(OB) `sh ./build/camlp4-byte-only.sh`
.PHONY: native
native:
$(OB) `sh ./build/camlp4-native-only.sh`
.PHONY: all
all: byte native
.PHONY: install
install:
env DESTDIR=$(DESTDIR) sh ./build/install.sh
.PHONY: install-META
install-META: camlp4/META
mkdir -p $(DESTDIR)${PKGDIR}/camlp4/
cp -f camlp4/META $(DESTDIR)${PKGDIR}/camlp4/
camlp4/META: camlp4/META.in
sed -e s/@@VERSION@@/${version}/g $? > $@
.PHONY: bootstrap
bootstrap:
sh ./build/camlp4-bootstrap.sh
.PHONY: Camlp4Ast
Camlp4Ast:
sh ./build/camlp4-mkCamlp4Ast.sh
.PHONY: clean
clean:
rm -rf _build
.PHONY: distclean
distclean:
rm -rf _build myocamlbuild_config.ml Makefile.config