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

DEMO=demo/Demo.native

.PHONY : ${LIBS}

all: ${LIBS}

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

${LIBS}:
	${OCAMLBUILD} ${SOURCE_DIRS} ${LIBS_}

${DEMO}:
	${OCAMLBUILD} ${DEMO_DIRS} ${SOURCE_DIRS} ${DEMO}

clean:
	${OCAMLBUILD} ${DEMO_DIRS} ${SOURCE_DIRS} ${DEMO} -clean