Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (35 sloc) 0.998 kb
USE_OCAMLFIND = true
BYTE_ENABLED = true
OCAMLDEP_MODULES_ENABLED = false
OCAMLPACKS = lwt.unix
OCAMLFLAGS = -annot -g
FILES = nproc
MLI = $(addsuffix .mli, $(FILES))
OCamlLibrary(nproc, $(FILES))
OCamlProgram(test_nproc, $(FILES) test_nproc)
.DEFAULT: META nproc.cma nproc.cmxa test_nproc.opt
META: META.in VERSION
echo "version = \"$$(cat VERSION)\"" > META
cat META.in >> META
.PHONY: test
test: test_nproc.opt
./test_nproc.opt
.PHONY: install uninstall
install:
ocamlfind install nproc META nproc.mli nproc.cmi \
nproc.cmo nproc.cma \
nproc.cmx nproc.o nproc.cmxa nproc.a
uninstall:
ocamlfind remove nproc
.PHONY: doc
doc: doc/index.html
doc/index.html: $(MLI)
mkdir -p doc
ocamlfind ocamldoc -d doc -html $(MLI) -package $(OCAMLPACKS)
.PHONY: install-doc
install-doc: doc
cd ../mylifelabs.github.com && mkdir -p nproc
cp doc/* ../mylifelabs.github.com/nproc
.PHONY: clean
clean:
rm -f *.o *.a *.cm* *~ *.annot *.run *.opt test_nproc META doc/*
Jump to Line
Something went wrong with that request. Please try again.