Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 79 lines (63 sloc) 1.764 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 @cago Moved external source in src_ext/
cago authored
3 OCAMLC=ocamlc
4 SRC_EXT=src_ext
c882255 @samoht [opam server] start implementing the OPAM server repository pluggin.
samoht authored
5 TARGETS = opam opam-server \
ab53aff @samoht Fix Makefile
samoht authored
6 opam-rsync-init opam-rsync-update opam-rsync-download opam-rsync-upload \
b097165 @samoht [curl] Add a new repository backend, based on curl/wget, as rsync-ing…
samoht authored
7 opam-curl-init opam-curl-update opam-curl-download opam-curl-upload \
c882255 @samoht [opam server] start implementing the OPAM server repository pluggin.
samoht authored
8 opam-git-init opam-git-update opam-git-download opam-git-upload \
7e5fe8a @samoht Add helper scripts to build .config.in and .install
samoht authored
9 opam-server-init opam-server-update opam-server-download opam-server-upload \
9fd1a52 @samoht [scripts] add a small script to initialize rsync and server repositories
samoht authored
10 opam-mk-config opam-mk-install opam-mk-repo
750fc50 @samoht Add a first build skeleton
samoht authored
11
12 .PHONY: all
13
061a376 @samoht [build] fix build to use the latest version of ocaml-re
samoht authored
14 all: ./_obuild/unixrun
15 $(MAKE) clone
16 $(MAKE) compile
750fc50 @samoht Add a first build skeleton
samoht authored
17
18 scan: ./_obuild/unixrun
19 $(OCPBUILD) -scan
20 sanitize: ./_obuild/unixrun
21 $(OCPBUILD) -sanitize
22 byte: ./_obuild/unixrun
23 $(OCPBUILD) -byte
24 opt: ./_obuild/unixrun
25 $(OCPBUILD) -asm
26 ./_obuild/unixrun:
27 mkdir -p ./_obuild
cef3112 @cago Moved external source in src_ext/
cago authored
28 $(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
29
ac99a15 @samoht More WIP ...
samoht authored
30 bootstrap: _obuild/unixrun _obuild/opam/opam.byte
31 rm -f boot/opam.boot
32 ocp-bytehack -static _obuild/opam/opam.byte -o boot/opam.boot
750fc50 @samoht Add a first build skeleton
samoht authored
33
fd96a37 @samoht [build] symplify Makefile
samoht authored
34 compile: ./_obuild/unixrun
750fc50 @samoht Add a first build skeleton
samoht authored
35 $(OCPBUILD) -init -scan -sanitize $(TARGET)
36
cef3112 @cago Moved external source in src_ext/
cago authored
37 clone:
38 $(MAKE) -C $(SRC_EXT)
750fc50 @samoht Add a first build skeleton
samoht authored
39
40 clean:
b1c2162 @samoht Fix Makefile
samoht authored
41 rm -rf _obuild
2c9a85c @samoht More file spliting.
samoht authored
42 rm -rf src/*.annot bat/*.annot
ac99a15 @samoht More WIP ...
samoht authored
43 rm -f opam
b1c2162 @samoht Fix Makefile
samoht authored
44 rm -f ocp-build.*
cef3112 @cago Moved external source in src_ext/
cago authored
45 $(MAKE) -C $(SRC_EXT) clean
750fc50 @samoht Add a first build skeleton
samoht authored
46
cef3112 @cago Moved external source in src_ext/
cago authored
47 distclean: clean
b1c2162 @samoht Fix Makefile
samoht authored
48 rm -f *.tar.gz *.tar.bz2
cef3112 @cago Moved external source in src_ext/
cago authored
49 rm -rf _obuild _build
50 $(MAKE) -C $(SRC_EXT) distclean
7f510c5 @samoht Few makefile tweaks
samoht authored
51
ec59f94 @samoht [tests] make tests should test all the backends
samoht authored
52 .PHONY: tests
53
7f510c5 @samoht Few makefile tweaks
samoht authored
54 tests:
ec59f94 @samoht [tests] make tests should test all the backends
samoht authored
55 $(MAKE) -C tests all
56
57 tests-rsync:
58 $(MAKE) -C tests rsync
f8dc221 @samoht Add --root to ocp-get and ocp-get-server to change the default root p…
samoht authored
59
bcd969d @samoht Fix build
samoht authored
60 tests-server:
61 $(MAKE) -C tests server
62
638dc66 @samoht [build] add make tests-git target
samoht authored
63 tests-git:
64 $(MAKE) -C tests git
d72de1d @samoht More cleanups
samoht authored
65
66 %-install:
67 cp _obuild/$*/$*.asm $(BIN)/$*
68
69 .PHONY: install
70 install: $(TARGETS:%=%-install)
e04535c @samoht Add API documentation
samoht authored
71 @
72
73 doc: compile
e7eb612 @samoht Move all the doc-related stuff into the same folder
samoht authored
74 mkdir -p doc/html/
e04535c @samoht Add API documentation
samoht authored
75 ocamldoc \
76 -I _obuild/opam-lib -I _obuild/cudf -I _obuild/dose \
77 -I _obuild/bat -I _obuild/unix -I _obuild/extlib \
78 -I _obuild/arg -I _obuild/graph \
e7eb612 @samoht Move all the doc-related stuff into the same folder
samoht authored
79 src/*.mli -html -d doc/html/
Something went wrong with that request. Please try again.