$OpenBSD: patch-Makefile_ocamlduce,v 1.1.1.1 2005/09/23 14:27:27 avsm Exp $ --- Makefile.ocamlduce.orig Fri Sep 23 14:44:26 2005 +++ Makefile.ocamlduce Fri Sep 23 14:53:27 2005 @@ -396,17 +396,32 @@ clean:: rm -f ocamlducedoc* cd ocamldoc && $(MAKE) clean +NAT_BIN= ocamlducec.opt ocamlduceopt.opt ocamlducedep.opt \ + ocamlducedoc.opt ocamlduceopt +NAT_LIB= ocamlduce.cmxa ocamlduce.a +BYT_BIN= ocamlducec ocamlduce ocamlducedep ocamlducedoc +BYT_LIB= ocamlduce.cma stdlib/ocamlduce.cmi \ + cduce_types.cmi stdlib/ocamlduce.mli # Findlib installation -INSTALL_FILES= \ - ocamlducec ocamlduce ocamlducedep ocamlducedoc ocamlduce.cma \ - ocamlduceopt ocamlduce.cmxa ocamlduce.a \ - ocamlducec.opt ocamlduceopt.opt ocamlducedep.opt ocamlducedoc.opt \ - stdlib/ocamlduce.cmi cduce_types.cmi stdlib/ocamlduce.mli +INSTALL_FILES= ${NAT_BIN} ${NAT_LIB} ${BYT_BIN} ${BYT_LIB} install: FORCE ocamlfind install ocamlduce META $(wildcard $(INSTALL_FILES)) uninstall: FORCE - ocamlfind remove ocamlduce \ No newline at end of file + ocamlfind remove ocamlduce + +# Normal installation + +minstall: FORCE + mkdir -p ${DESTDIR}${PREFIX}/lib/ocaml + cp ${BYT_LIB} ${DESTDIR}${PREFIX}/lib/ocaml + cp ${BYT_BIN} ${DESTDIR}${PREFIX}/bin + +minstallopt: FORCE + mkdir -p ${DESTDIR}${PREFIX}/lib/ocaml + cp ${NAT_LIB} ${DESTDIR}${PREFIX}/lib/ocaml + cp ${NAT_BIN} ${DESTDIR}${PREFIX}/bin +