forked from ocaml-community/utop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
54 lines (43 loc) · 1.1 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
INSTALL_ARGS := $(if $(PREFIX),--prefix $(PREFIX),)
.PHONY: all
all:
jbuilder build @install
.PHONY: install
install:
jbuilder install $(INSTALL_ARGS)
.PHONY: uninstall
uninstall:
jbuilder uninstall $(INSTALL_ARGS)
.PHONY: reinstall
reinstall:
$(MAKE) uninstall
$(MAKE) install
.PHONY: examples
examples:
jbuilder build @examples
.PHONY: test
test:
jbuilder runtest
.PHONY: all-supported-ocaml-versions
all-supported-ocaml-versions:
jbuilder build --workspace jbuild-workspace.dev
.PHONY: cinaps
cinaps:
cinaps -styler ocp-indent -i src/migrate_parsetree_versions.ml*
cinaps -styler ocp-indent -i src/migrate_parsetree_40?_40?.ml*
.PHONY: clean
clean:
rm -rf _build *.install
find . -name .merlin -delete
# This needs to be updated
.PHONY: gh-pages
gh-pages: doc
git clone `git config --get remote.origin.url` .gh-pages --reference .
git -C .gh-pages checkout --orphan gh-pages
git -C .gh-pages reset
git -C .gh-pages clean -dxf
cp -t .gh-pages/ _build/utop-api.docdir/*
git -C .gh-pages add .
git -C .gh-pages commit -m "Update Pages"
git -C .gh-pages push origin gh-pages -f
rm -rf .gh-pages