-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
41 lines (29 loc) · 832 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
default: all
prebuild:
@rm -f web/regenerate_web.bc.js
web: prebuild
dune build web/regenerate_web.bc.js
@cp _build/default/web/regenerate_web.bc.js web/
all: prebuild
dune build @install
test: prebuild
dune runtest --profile release
clean: prebuild
dune clean
doc: prebuild
dune build @doc
NAME=regenerate
DOCDIR=.gh-pages
$(DOCDIR)/.git:
mkdir -p $(DOCDIR)
cd $(DOCDIR) && (\
git clone -b gh-pages [email protected]:regex-Generate/$(NAME).git . \
)
gh-pages-index: $(DOCDIR)/.git web
cp -r web/*.html web/*.js web/*.css web/static "$(DOCDIR)/"
gh-pages: $(DOCDIR)/.git gh-pages-index doc
cp -r _build/default/_doc/_html/* $(DOCDIR)/doc/dev/
git -C $(DOCDIR) add --all
git -C $(DOCDIR) commit -a -m "gh-page updates"
git -C $(DOCDIR) push origin gh-pages
.PHONY: all test clean web prebuild gh-pages doc