forked from ocaml-omake/omake
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (23 loc) · 754 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
OCAML = ocaml
OCAMLFLAGS = -safe-string -strict-sequence
.PHONY: all bootstrap force-bootstrap install default clean doc package
#
# Bootstrap program is omake-boot
#
default: bootstrap
bootstrap:
$(OCAML) $(OCAMLFLAGS) build.ml -auto-bootstrap OCAML="$(OCAML)"
force-bootstrap:
$(OCAML) $(OCAMLFLAGS) build.ml -force-bootstrap OCAML="$(OCAML)"
all:
$(OCAML) $(OCAMLFLAGS) build.ml -build OCAML="$(OCAML)"
install:
$(OCAML) $(OCAMLFLAGS) build.ml -install OCAML="$(OCAML)"
clean:
$(OCAML) $(OCAMLFLAGS) build.ml -clean OCAML="$(OCAML)"
doc:
OMAKELIB=`pwd`/lib ./src/main/omake doc
# omake version is taken from the version.txt file!
package:
OMAKELIB=`pwd`/lib ./src/main/omake clean-package
OMAKELIB=`pwd`/lib ./src/main/omake package