2
# DO NOT EDIT (digest: bc1e05bfc8b39b664f29dae8dbd3ebbb)
7
$(SETUP) -build $(BUILDFLAGS)
10
$(SETUP) -doc $(DOCFLAGS)
12
test: setup.data build
13
$(SETUP) -test $(TESTFLAGS)
16
$(SETUP) -all $(ALLFLAGS)
19
$(SETUP) -install $(INSTALLFLAGS)
22
$(SETUP) -uninstall $(UNINSTALLFLAGS)
25
$(SETUP) -reinstall $(REINSTALLFLAGS)
28
$(SETUP) -clean $(CLEANFLAGS)
31
$(SETUP) -distclean $(DISTCLEANFLAGS)
34
$(SETUP) -configure $(CONFIGUREFLAGS)
36
.PHONY: build doc test all install uninstall reinstall clean distclean configure
1
# Generic Makefile for oasis project
3
# Set to setup.exe for the release
9
# Setup for the development version
10
setup-dev.exe: _oasis setup.ml
11
sed '/^#/D' setup.ml > setup_dev.ml
12
ocamlfind ocamlopt -o $@ -linkpkg -package ocamlbuild,oasis.dynrun setup_dev.ml || ocamlfind ocamlc -o $@ -linkpkg -package ocamlbuild,oasis.dynrun setup_dev.ml || true
15
# Setup for the release
17
ocamlopt.opt -o $@ $< || ocamlopt -o $@ $< || ocamlc -o $@ $<
18
rm -f setup.cmx setup.cmi setup.o setup.obj setup.cmo
20
build: $(SETUP) setup.data
21
./$(SETUP) -build $(BUILDFLAGS)
23
doc: $(SETUP) setup.data build
24
./$(SETUP) -doc $(DOCFLAGS)
26
test: $(SETUP) setup.data build
27
./$(SETUP) -test $(TESTFLAGS)
30
./$(SETUP) -all $(ALLFLAGS)
32
install: $(SETUP) setup.data
33
./$(SETUP) -install $(INSTALLFLAGS)
35
uninstall: $(SETUP) setup.data
36
./$(SETUP) -uninstall $(UNINSTALLFLAGS)
38
reinstall: $(SETUP) setup.data
39
./$(SETUP) -reinstall $(REINSTALLFLAGS)
42
./$(SETUP) -clean $(CLEANFLAGS)
45
./$(SETUP) -distclean $(DISTCLEANFLAGS)
48
./$(SETUP) -configure $(CONFIGUREFLAGS)
51
./$(SETUP) -configure $(CONFIGUREFLAGS)
53
.PHONY: default build doc test all install uninstall reinstall clean distclean configure