-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
59 lines (47 loc) · 1.33 KB
/
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
49
50
51
52
53
54
55
56
57
58
-include Makefile.conf
all:
mkdir -p stage
for pkg in $(PKGLIST); do \
$(MAKE) -C src/$$pkg all || exit; \
done
doc:
mkdir -p doc
for pkg in $(PKGLIST); do \
$(MAKE) -C src/$$pkg doc || exit; \
done
find . -name '*.odoc' | awk '{print "-load"; print $$1}' | xargs ocamldoc -html -sort -d doc
install:
for pkg in $(PKGLIST); do \
$(MAKE) -C src/$$pkg install || exit; \
done
install bin/ocamlfindjs $(BINDIR)
uninstall:
for pkg in $(PKGLIST); do \
$(MAKE) -C src/$$pkg uninstall || exit; \
done
rm -f $(BINDIR)/ocamlfindjs
clean:
for pkg in $(PKGLIST); do \
$(MAKE) -C src/$$pkg clean || exit; \
done
$(MAKE) -C test clean
$(MAKE) -C examples clean
rm -rf doc
rm -rf stage
distclean: clean
rm -rf Makefile.conf
rm -f ocaml
test:
$(MAKE) -C test
examples:
$(MAKE) -C examples
.PHONY: test examples doc
github:
rsync -a --delete --exclude './' doc/ ../ocamljs.gh-pages/doc/
rsync -a -L --delete --delete-excluded --exclude _build/ --include '*/' --exclude myocamlbuild.ml --include '*.ml' --include '*.js' --include '*.html' --include '*.css' --include '*.png' --include '*.jpg' --exclude '*' examples/ ../ocamljs.gh-pages/examples/
dist:
$(MAKE) distclean
cd ..; \
mv ocamljs ocamljs-0.3; \
tar cvfz ocamljs-0.3.tar.gz --exclude-from ocamljs-0.3/.exclude ocamljs-0.3; \
mv ocamljs-0.3 ocamljs