forked from ocaml-opam/opam2web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (28 loc) · 749 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
.PHONY: all build install clean
all: build
build:
cd src && $(MAKE)
cp src/search.js ext/js/
install:
cd src && $(MAKE) install
clean:
cd src && $(MAKE) clean
.PHONY: test-prepare
test-prepare:
rm -rf www
mkdir -p www/content/doc www/content/blog
cd www && \
cp -r ../content . && \
cp -r ../../opam.wiki/* content/doc/ && \
cp -r ../../opam-blog/* content/blog/
test: build test-prepare
cd www && \
../src/_build/opam2web.native --content content path:. && \
cp -r -L ../ext . && \
xdg-open index.html
fulltest: build test-prepare
cd www && \
git clone [email protected]:ocaml/opam-repository -b master && \
../src/_build/opam2web.native --content content path:opam-repository && \
cp -r -L ../ext . && \
xdg-open index.html