Makefile 401 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
PREFIX?=/usr/local
BINDIR=$(PREFIX)/bin

OCB_FLAGS = -use-ocamlfind -I src
OCB = ocamlbuild $(OCB_FLAGS)

VERSION = `cat VERSION`

all: native

Bruno Guillaume's avatar
Bruno Guillaume committed
11
native:
12 13 14 15 16 17 18 19 20 21 22 23 24 25
	$(OCB) -tag-line "true:	package(libgrew)" grew_main.native

install:
	cp grew_main.native $(BINDIR)/grew

uninstall:
	rm -f $(BINDIR)/grew

.PHONY:	all clean byte native install uninstall

clean:
	$(OCB) -clean

info:
Bruno Guillaume's avatar
Bruno Guillaume committed
26
	@echo "BINDIR   = $(BINDIR)"