Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 79 lines (61 sloc) 1.579 kB
d72de1d @samoht More cleanups
samoht authored
1 BIN = /usr/local/bin
8d1116a @OCamlPro-FabriceLeFessant ocp-build: update with most recent version
OCamlPro-FabriceLeFessant authored
2 LOCAL_OCPBUILD=./ocp-build/ocp-build
3 OCPBUILD ?= $(LOCAL_OCPBUILD)
cef3112 @cago Moved external source in src_ext/
cago authored
4 OCAMLC=ocamlc
5 SRC_EXT=src_ext
f09920f @samoht Start fixing the converter from 0.3 to 0.4
samoht authored
6 TARGETS = opam opam-mk-repo opam-repo-convert-0.3
750fc50 @samoht Add a first build skeleton
samoht authored
7
8 .PHONY: all
9
7f7724c @samoht Add a basic META.in file
samoht authored
10 all: $(LOCAL_OCPBUILD) META
061a376 @samoht [build] fix build to use the latest version of ocaml-re
samoht authored
11 $(MAKE) clone
12 $(MAKE) compile
750fc50 @samoht Add a first build skeleton
samoht authored
13
8d1116a @OCamlPro-FabriceLeFessant ocp-build: update with most recent version
OCamlPro-FabriceLeFessant authored
14 scan: $(LOCAL_OCPBUILD)
750fc50 @samoht Add a first build skeleton
samoht authored
15 $(OCPBUILD) -scan
8d1116a @OCamlPro-FabriceLeFessant ocp-build: update with most recent version
OCamlPro-FabriceLeFessant authored
16 sanitize: $(LOCAL_OCPBUILD)
750fc50 @samoht Add a first build skeleton
samoht authored
17 $(OCPBUILD) -sanitize
8d1116a @OCamlPro-FabriceLeFessant ocp-build: update with most recent version
OCamlPro-FabriceLeFessant authored
18 byte: $(LOCAL_OCPBUILD)
750fc50 @samoht Add a first build skeleton
samoht authored
19 $(OCPBUILD) -byte
8d1116a @OCamlPro-FabriceLeFessant ocp-build: update with most recent version
OCamlPro-FabriceLeFessant authored
20 opt: $(LOCAL_OCPBUILD)
750fc50 @samoht Add a first build skeleton
samoht authored
21 $(OCPBUILD) -asm
9948172 @samoht add str.cma to unixrun (useful to bootstrap ocp-get, as dose and cudf…
samoht authored
22
8d1116a @OCamlPro-FabriceLeFessant ocp-build: update with most recent version
OCamlPro-FabriceLeFessant authored
23 $(LOCAL_OCPBUILD): ocp-build/ocp-build.boot ocp-build/win32_c.c
24 $(MAKE) -C ocp-build
750fc50 @samoht Add a first build skeleton
samoht authored
25
8d1116a @OCamlPro-FabriceLeFessant ocp-build: update with most recent version
OCamlPro-FabriceLeFessant authored
26 compile: $(LOCAL_OCPBUILD)
750fc50 @samoht Add a first build skeleton
samoht authored
27 $(OCPBUILD) -init -scan -sanitize $(TARGET)
28
8d1116a @OCamlPro-FabriceLeFessant ocp-build: update with most recent version
OCamlPro-FabriceLeFessant authored
29 clone:
cef3112 @cago Moved external source in src_ext/
cago authored
30 $(MAKE) -C $(SRC_EXT)
750fc50 @samoht Add a first build skeleton
samoht authored
31
32 clean:
b1c2162 @samoht Fix Makefile
samoht authored
33 rm -rf _obuild
2c9a85c @samoht More file spliting.
samoht authored
34 rm -rf src/*.annot bat/*.annot
ac99a15 @samoht More WIP ...
samoht authored
35 rm -f opam
b1c2162 @samoht Fix Makefile
samoht authored
36 rm -f ocp-build.*
cef3112 @cago Moved external source in src_ext/
cago authored
37 $(MAKE) -C $(SRC_EXT) clean
794cbf8 @OCamlPro-FabriceLeFessant ocp-build: remove useless directory boot
OCamlPro-FabriceLeFessant authored
38 $(MAKE) -C ocp-build clean
750fc50 @samoht Add a first build skeleton
samoht authored
39
cef3112 @cago Moved external source in src_ext/
cago authored
40 distclean: clean
b1c2162 @samoht Fix Makefile
samoht authored
41 rm -f *.tar.gz *.tar.bz2
cef3112 @cago Moved external source in src_ext/
cago authored
42 rm -rf _obuild _build
43 $(MAKE) -C $(SRC_EXT) distclean
7f510c5 @samoht Few makefile tweaks
samoht authored
44
ec59f94 @samoht [tests] make tests should test all the backends
samoht authored
45 .PHONY: tests
46
7f510c5 @samoht Few makefile tweaks
samoht authored
47 tests:
ec59f94 @samoht [tests] make tests should test all the backends
samoht authored
48 $(MAKE) -C tests all
49
50 tests-rsync:
51 $(MAKE) -C tests rsync
f8dc221 @samoht Add --root to ocp-get and ocp-get-server to change the default root p…
samoht authored
52
638dc66 @samoht [build] add make tests-git target
samoht authored
53 tests-git:
54 $(MAKE) -C tests git
d72de1d @samoht More cleanups
samoht authored
55
56 %-install:
57 cp _obuild/$*/$*.asm $(BIN)/$*
58
7f7724c @samoht Add a basic META.in file
samoht authored
59 PRODUCT_VERSION=$(shell grep "let version" src/globals.ml | cut -f 2 -d \")
60 META: META.in
61 sed 's/@VERSION@/$(PRODUCT_VERSION)/g' < $< > $@
62
d72de1d @samoht More cleanups
samoht authored
63 .PHONY: install
f09920f @samoht Start fixing the converter from 0.3 to 0.4
samoht authored
64 install:
65 $(MAKE) $(TARGETS:%=%-install)
e04535c @samoht Add API documentation
samoht authored
66
67 doc: compile
e7eb612 @samoht Move all the doc-related stuff into the same folder
samoht authored
68 mkdir -p doc/html/
e04535c @samoht Add API documentation
samoht authored
69 ocamldoc \
70 -I _obuild/opam-lib -I _obuild/cudf -I _obuild/dose \
71 -I _obuild/bat -I _obuild/unix -I _obuild/extlib \
72 -I _obuild/arg -I _obuild/graph \
0b3eeea @samoht Add a rule in Makefile to remove trailing blank lines in ml/mli
samoht authored
73 src/*.mli -html -d doc/html/
74
75 trailing:
76 find src -name "*.ml*" -exec \
77 sed -i xxx -e :a -e "/^\n*$$/{$$d;N;ba" -e '}' {} \;
e7ed16f @samoht Update Makefile
samoht authored
78 find src -name "*xxx" -exec rm {} \;
Something went wrong with that request. Please try again.