-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
48 lines (38 loc) · 1.05 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
-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
uninstall:
for pkg in $(PKGLIST); do \
$(MAKE) -C src/$$pkg uninstall || exit; \
done
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
test:
make -C test
examples:
make -C examples
.PHONY: test examples doc
github:
rsync -a --delete --exclude './' doc/ ../froc.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/ ../froc.gh-pages/examples/