Skip to content
Newer
Older
100644 30 lines (24 sloc) 781 Bytes
e641cc4 @mjambon Added a Makefile, INSTALL instructions and a link to the ocamldoc
mjambon authored Nov 29, 2011
1 # This Makefile provides only what is needed to build and install nproc.
2 # Development is done with omake using the OMakefile.
3
4 .PHONY: default all opt install uninstall
5
6 default: all opt
7
8 META: META.in VERSION
9 echo "version = \"$$(cat VERSION)\"" > META
10 cat META.in >> META
11
12 all: META
13 ocamlfind ocamlc -c nproc.mli -package lwt.unix
14 ocamlfind ocamlc -a -g nproc.ml -o nproc.cma -package lwt.unix
15 opt: META
16 ocamlfind ocamlc -c nproc.mli -package lwt.unix
17 ocamlfind ocamlopt -a -g nproc.ml -o nproc.cmxa -package lwt.unix
18 install:
19 ocamlfind install nproc META \
20 `find nproc.mli nproc.cmi \
21 nproc.cmo nproc.cma \
22 nproc.cmx nproc.o nproc.cmxa nproc.a`
23 uninstall:
24 ocamlfind remove nproc
25
26 .PHONY: clean
27 clean:
28 omake clean
29 rm -f *.omc
Something went wrong with that request. Please try again.