summaryrefslogtreecommitdiff
path: root/lang/ocaml/patches/patch-aj
blob: d96640913a8a15bc2215ef3d2a7ef6b88211f08c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-aj,v 1.4 2005/02/04 21:35:51 adrianp Exp $

--- byterun/Makefile.orig	2004-07-16 17:11:33.000000000 +0100
+++ byterun/Makefile	2004-10-15 16:08:41.000000000 +0100
@@ -48,14 +48,14 @@
 	          prims.o libcamlrund.a $(BYTECCLIBS)
 
 install:
-	cp ocamlrun$(EXE) $(BINDIR)/ocamlrun$(EXE)
-	cp libcamlrun.a $(LIBDIR)/libcamlrun.a
+	${BSD_INSTALL_PROGRAM} ocamlrun$(EXE) $(BINDIR)/ocamlrun$(EXE)
+	${BSD_INSTALL_DATA} libcamlrun.a $(LIBDIR)/libcamlrun.a
 	cd $(LIBDIR); $(RANLIB) libcamlrun.a
-	if test -d $(LIBDIR)/caml; then : ; else mkdir $(LIBDIR)/caml; fi
+	if test -d $(LIBDIR)/caml; then : ; else ${BSD_INSTALL_DATA_DIR} $(LIBDIR)/caml; fi
 	for i in $(PUBLIC_INCLUDES); do \
           sed -f ../tools/cleanup-header $$i > $(LIBDIR)/caml/$$i; \
         done
-	cp ld.conf $(LIBDIR)/ld.conf
+	${BSD_INSTALL_DATA} ld.conf $(LIBDIR)/ld.conf
 
 ld.conf:
 	echo "$(STUBLIBDIR)" >ld.conf