target of Makefile.in, ease creation of debian package and non
standard installation.
OCAMLC = ocamlfind ocamlc
OCAMLOPT = ocamlfind ocamlopt
OCAMLDEP = ocamldep
+DESTDIR = /usr/lib/ocaml
ARCHIVE = $(PACKAGE).cma
ARCHIVE_C = $(PACKAGE).a
install:
test ! -f $(ARCHIVE_OPT) || extra="$(ARCHIVE_C) $(ARCHIVE_OPT)" ; \
- ocamlfind install $(PACKAGE) $(OBJECTS_C) $(ARCHIVE) $(INST) $$extra
+ ocamlfind install -destdir $(DESTDIR) $(PACKAGE) $(OBJECTS_C) $(ARCHIVE) $(INST) $$extra
uninstall:
ocamlfind remove $(PACKAGE)