Source

gp / src / Makefile

Full commit

CNATIVE=ocamlfind ocamlopt -annot -package unix
CBYTE=ocamlfind ocamlc -package unix

byte:
	$(CBYTE) -c gp.mli gp.ml
	$(CBYTE) -a -o gp.cma gp.cmo

native:
	$(CNATIVE) -c gp.mli gp.ml
	$(CNATIVE) -a -o gp.cmxa gp.cmx

install:
	ocamlfind remove gp
	ocamlfind install gp META gp.cmi gp.cma gp.cmxa gp.a

uninstall:
	ocamlfind remove gp

doc:
	rm -rf ../doc_html
	mkdir ../doc_html
	ocamlfind ocamldoc -hide-warnings -dump docconfig gp.mli
	ocamlfind ocamldoc -hide-warnings -html -colorize-code \
		-css-style style.css -t "Gp: accessing Gnuplot from OCaml" \
		-stars -d ../doc_html -load docconfig
	cp style.css ../doc_html
			
clean:
	rm -f docconfig gp.cma gp.cmxa gp.cmi gp.cmo gp.cmx gp.a gp.o

all: byte native doc install clean