Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 2ea165bed5
Fetching contributors…

Cannot retrieve contributors at this time

79 lines (63 sloc) 1.764 kb
BIN = /usr/local/bin
OCPBUILD ?= ./_obuild/unixrun ./boot/ocp-build.boot
OCAMLC=ocamlc
SRC_EXT=src_ext
TARGETS = opam opam-server \
opam-rsync-init opam-rsync-update opam-rsync-download opam-rsync-upload \
opam-curl-init opam-curl-update opam-curl-download opam-curl-upload \
opam-git-init opam-git-update opam-git-download opam-git-upload \
opam-server-init opam-server-update opam-server-download opam-server-upload \
opam-mk-config opam-mk-install opam-mk-repo
.PHONY: all
all: ./_obuild/unixrun
$(MAKE) clone
$(MAKE) compile
scan: ./_obuild/unixrun
$(OCPBUILD) -scan
sanitize: ./_obuild/unixrun
$(OCPBUILD) -sanitize
byte: ./_obuild/unixrun
$(OCPBUILD) -byte
opt: ./_obuild/unixrun
$(OCPBUILD) -asm
./_obuild/unixrun:
mkdir -p ./_obuild
$(OCAMLC) -o ./_obuild/unixrun -make-runtime unix.cma str.cma
bootstrap: _obuild/unixrun _obuild/opam/opam.byte
rm -f boot/opam.boot
ocp-bytehack -static _obuild/opam/opam.byte -o boot/opam.boot
compile: ./_obuild/unixrun
$(OCPBUILD) -init -scan -sanitize $(TARGET)
clone:
$(MAKE) -C $(SRC_EXT)
clean:
rm -rf _obuild
rm -rf src/*.annot bat/*.annot
rm -f opam
rm -f ocp-build.*
$(MAKE) -C $(SRC_EXT) clean
distclean: clean
rm -f *.tar.gz *.tar.bz2
rm -rf _obuild _build
$(MAKE) -C $(SRC_EXT) distclean
.PHONY: tests
tests:
$(MAKE) -C tests all
tests-rsync:
$(MAKE) -C tests rsync
tests-server:
$(MAKE) -C tests server
tests-git:
$(MAKE) -C tests git
%-install:
cp _obuild/$*/$*.asm $(BIN)/$*
.PHONY: install
install: $(TARGETS:%=%-install)
@
doc: compile
mkdir -p doc/html/
ocamldoc \
-I _obuild/opam-lib -I _obuild/cudf -I _obuild/dose \
-I _obuild/bat -I _obuild/unix -I _obuild/extlib \
-I _obuild/arg -I _obuild/graph \
src/*.mli -html -d doc/html/
Jump to Line
Something went wrong with that request. Please try again.