30 lines
1.5 KiB
Plaintext
30 lines
1.5 KiB
Plaintext
$OpenBSD: patch-src_findlib_Makefile,v 1.1 2006/05/29 03:46:29 avsm Exp $
|
|
--- src/findlib/Makefile.orig Sun May 28 03:52:22 2006
|
|
+++ src/findlib/Makefile Sun May 28 03:53:13 2006
|
|
@@ -71,18 +71,18 @@ clean:
|
|
ocamlfind$(EXEC_SUFFIX) ocamlfind_opt$(EXEC_SUFFIX)
|
|
|
|
install: all
|
|
- mkdir -p $(prefix)$(OCAML_SITELIB)/$(NAME)
|
|
- mkdir -p $(prefix)$(OCAMLFIND_BIN)
|
|
- test $(INSTALL_TOPFIND) -eq 0 || cp topfind $(prefix)$(OCAML_CORE_STDLIB)
|
|
+ mkdir -p $(DESTDIR)$(prefix)$(OCAML_SITELIB)/$(NAME)
|
|
+ mkdir -p $(DESTDIR)$(prefix)$(OCAMLFIND_BIN)
|
|
+ test $(INSTALL_TOPFIND) -eq 0 || cp topfind $(DESTDIR)$(prefix)$(OCAML_CORE_STDLIB)
|
|
files=`$(TOP)/tools/collect_files $(TOP)/Makefile.config findlib.cmi findlib.mli findlib.cma topfind.cmi topfind.mli fl_package_base.mli fl_package_base.cmi fl_metascanner.mli fl_metascanner.cmi findlib_top.cma findlib.cmxa findlib.a META` && \
|
|
- cp $$files $(prefix)$(OCAML_SITELIB)/$(NAME)
|
|
+ cp $$files $(DESTDIR)$(prefix)$(OCAML_SITELIB)/$(NAME)
|
|
f="ocamlfind$(EXEC_SUFFIX)"; { test -f ocamlfind_opt$(EXEC_SUFFIX) && f="ocamlfind_opt$(EXEC_SUFFIX)"; }; \
|
|
- cp $$f $(prefix)$(OCAMLFIND_BIN)/ocamlfind$(EXEC_SUFFIX)
|
|
+ cp $$f $(DESTDIR)$(prefix)$(OCAMLFIND_BIN)/ocamlfind$(EXEC_SUFFIX)
|
|
|
|
install-num-top:
|
|
- mkdir -p $(prefix)$(OCAML_SITELIB)/num-top
|
|
+ mkdir -p $(DESTDIR)$(prefix)$(OCAML_SITELIB)/num-top
|
|
cp num_top.cma num_top.cmi num_top_printers.cmi \
|
|
- $(prefix)$(OCAML_SITELIB)/num-top
|
|
+ $(DESTDIR)$(prefix)$(OCAML_SITELIB)/num-top
|
|
|
|
# Note: uninstall-num-top is part of the removal of the META files.
|
|
|