-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
73 lines (49 loc) · 1.48 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# OASIS_START
# DO NOT EDIT (digest: 46f8bd9984975bd4727bed22d0876cd2)
SETUP = ./setup.exe
build: setup.data $(SETUP)
$(SETUP) -build $(BUILDFLAGS)
doc: setup.data $(SETUP) build
$(SETUP) -doc $(DOCFLAGS)
test: setup.data $(SETUP) build
$(SETUP) -test $(TESTFLAGS)
all: $(SETUP)
$(SETUP) -all $(ALLFLAGS)
install: setup.data $(SETUP)
$(SETUP) -install $(INSTALLFLAGS)
uninstall: setup.data $(SETUP)
$(SETUP) -uninstall $(UNINSTALLFLAGS)
reinstall: setup.data $(SETUP)
$(SETUP) -reinstall $(REINSTALLFLAGS)
clean: $(SETUP)
$(SETUP) -clean $(CLEANFLAGS)
distclean: $(SETUP)
$(SETUP) -distclean $(DISTCLEANFLAGS)
$(RM) $(SETUP)
setup.data: $(SETUP)
$(SETUP) -configure $(CONFIGUREFLAGS)
configure: $(SETUP)
$(SETUP) -configure $(CONFIGUREFLAGS)
setup.exe: setup.ml
ocamlfind ocamlopt -o $@ $< || ocamlfind ocamlc -o $@ $< || true
$(RM) setup.cmi setup.cmo setup.cmx setup.o
.PHONY: build doc test all install uninstall reinstall clean distclean configure
# OASIS_STOP
wiki-api: doc
$(SETUP) -build api.wikidocdir/index.wiki
LOG_DIR = ./local/var/log
LIB_DIR = ./local/var/lib
run: install-data $(LOG_DIR) $(LIB_DIR)
CAML_LD_LIBRARY_PATH="${CAML_LD_LIBRARY_PATH}:_build/src/core" ocsigenserver -c local/etc/ocsigen/ocsimore.conf -v
restart: install-data
echo restart > /tmp/cpipe
STATIC_DIR = ./local/var/www/static/
.PHONY:
install-data: ${STATIC_DIR}
cp ./_build/src/site/client/ocsimore.js $<
${STATIC_DIR}:
mkdir -p $@
${LOG_DIR}:
mkdir -p $@
${LIB_DIR}:
mkdir -p $@