Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 70 lines (55 sloc) 1.388 kB
d72de1d @samoht More cleanups
samoht authored
1 BIN = /usr/local/bin
750fc50 @samoht Add a first build skeleton
samoht authored
2 OCPBUILD ?= ./_obuild/unixrun ./boot/ocp-build.boot
cef3112 @OCamlPro-Bozman Moved external source in src_ext/
OCamlPro-Bozman authored
3 OCAMLC=ocamlc
4 SRC_EXT=src_ext
d72de1d @samoht More cleanups
samoht authored
5 TARGETS = opam opam-rsync-init opam-rsync-update
750fc50 @samoht Add a first build skeleton
samoht authored
6
7 .PHONY: all
8
d72de1d @samoht More cleanups
samoht authored
9 all: ./_obuild/unixrun compile clone build
750fc50 @samoht Add a first build skeleton
samoht authored
10 @
11
12 scan: ./_obuild/unixrun
13 $(OCPBUILD) -scan
14 sanitize: ./_obuild/unixrun
15 $(OCPBUILD) -sanitize
16 byte: ./_obuild/unixrun
17 $(OCPBUILD) -byte
18 opt: ./_obuild/unixrun
19 $(OCPBUILD) -asm
20 ./_obuild/unixrun:
21 mkdir -p ./_obuild
cef3112 @OCamlPro-Bozman Moved external source in src_ext/
OCamlPro-Bozman authored
22 $(OCAMLC) -o ./_obuild/unixrun -make-runtime unix.cma str.cma
9948172 @samoht add str.cma to unixrun (useful to bootstrap ocp-get, as dose and cudf…
samoht authored
23
ac99a15 @samoht More WIP ...
samoht authored
24 bootstrap: _obuild/unixrun _obuild/opam/opam.byte
25 rm -f boot/opam.boot
26 ocp-bytehack -static _obuild/opam/opam.byte -o boot/opam.boot
750fc50 @samoht Add a first build skeleton
samoht authored
27
d72de1d @samoht More cleanups
samoht authored
28 build:
29 $(OCPBUILD) $(TARGETS)
1bcaf57 @samoht New format for user provided files
samoht authored
30
7621c69 @samoht As the bootstrap doesn't work yet, still fetch the dependencies manually
samoht authored
31 compile: ./_obuild/unixrun clone
750fc50 @samoht Add a first build skeleton
samoht authored
32 $(OCPBUILD) -init -scan -sanitize $(TARGET)
33
34
cef3112 @OCamlPro-Bozman Moved external source in src_ext/
OCamlPro-Bozman authored
35 clone:
36 $(MAKE) -C $(SRC_EXT)
750fc50 @samoht Add a first build skeleton
samoht authored
37
38 clean:
b1c2162 @samoht Fix Makefile
samoht authored
39 rm -rf _obuild
2c9a85c @samoht More file spliting.
samoht authored
40 rm -rf src/*.annot bat/*.annot
ac99a15 @samoht More WIP ...
samoht authored
41 rm -f opam
b1c2162 @samoht Fix Makefile
samoht authored
42 rm -f ocp-build.*
cef3112 @OCamlPro-Bozman Moved external source in src_ext/
OCamlPro-Bozman authored
43 $(MAKE) -C $(SRC_EXT) clean
750fc50 @samoht Add a first build skeleton
samoht authored
44
cef3112 @OCamlPro-Bozman Moved external source in src_ext/
OCamlPro-Bozman authored
45 distclean: clean
b1c2162 @samoht Fix Makefile
samoht authored
46 rm -f *.tar.gz *.tar.bz2
cef3112 @OCamlPro-Bozman Moved external source in src_ext/
OCamlPro-Bozman authored
47 rm -rf _obuild _build
48 $(MAKE) -C $(SRC_EXT) distclean
7f510c5 @samoht Few makefile tweaks
samoht authored
49
50 .PHONY: tests
51 tests:
cef3112 @OCamlPro-Bozman Moved external source in src_ext/
OCamlPro-Bozman authored
52 $(MAKE) -C tests
f8dc221 @samoht Add --root to ocp-get and ocp-get-server to change the default root p…
samoht authored
53
54 tests-runserver:
cef3112 @OCamlPro-Bozman Moved external source in src_ext/
OCamlPro-Bozman authored
55 $(MAKE) -C tests runserver
d72de1d @samoht More cleanups
samoht authored
56
57 %-install:
58 cp _obuild/$*/$*.asm $(BIN)/$*
59
60 .PHONY: install
61 install: $(TARGETS:%=%-install)
e04535c @samoht Add API documentation
samoht authored
62 @
63
64 doc: compile
65 mkdir -p html/
66 ocamldoc \
67 -I _obuild/opam-lib -I _obuild/cudf -I _obuild/dose \
68 -I _obuild/bat -I _obuild/unix -I _obuild/extlib \
69 -I _obuild/arg -I _obuild/graph \
70 src/*.mli -html -d html/
Something went wrong with that request. Please try again.