Source

ocaml-stringpainter / Makefile

OCAMLBUILD= ocamlbuild 
OCAMLFIND = ocamlfind

SOURCE_DIRS=\
	-Is src\


DEMO_DIRS=\
	-Is demo\

LIBS_=src/StringPainter.cma src/StringPainter.cmxa

LIBS =_build/src/StringPainter.cma _build/src/StringPainter.cmxa

CMI=\
	_build/src/StringPainter.cmi

LIB_FILES=\
	${CMI}\
	${LIBS}\
	_build/src/StringPainter.a

.PHONY: ${LIBS} lib demo

all: lib

install: lib
	${OCAMLFIND} install stringpainter META ${LIB_FILES}

uninstall:
	${OCAMLFIND} remove stringpainter

doc:
	${OCAMLBUILD} ${SOURCE_DIRS} src/StringPainter.docdir/index.html

lib:
	${OCAMLBUILD} ${SOURCE_DIRS} ${LIBS_}

demo: install
	cd demo; ${MAKE} all

clean:
	${OCAMLBUILD} ${SOURCE_DIRS} ${LIBS_} -clean
	cd demo; ${MAKE} clean