summaryrefslogtreecommitdiff
path: root/lang/caml-light/files/patch-src_launch_Makefile
blob: 38b39aaca4428b6a3a30a88d3725015063f4c7e2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- src/launch/Makefile.orig	Wed Feb 22 15:03:26 1995
+++ src/launch/Makefile	Sun Aug  6 11:58:56 2006
@@ -17,16 +17,17 @@
 	chmod a+x /tmp/testscr
 	sh -c 'if sh -c /tmp/testscr 2>/dev/null; \
                then echo "#!$(BINDIR)/camlrun" > $(LIBDIR)/header; \
-               else cp camlexec $(LIBDIR)/header; \
+               else ${BSD_INSTALL_SCRIPT} camlexec $(LIBDIR)/header; \
                fi'
 	rm -f /tmp/testscr
 	for script in camlc camllight camlmktop; do \
-	  cp $$script $(BINDIR)/$$script; \
+	  ${BSD_INSTALL_SCRIPT} $$script $(BINDIR)/$$script; \
 	  chmod a+x $(BINDIR)/$$script; \
 	done
 
 SEDCOMMANDS=\
-  -e 's|LIBDIR|$(LIBDIR)|' -e 's|CC|$(CC) $(OPTS)|' -e 's|LIBS|$(LIBS)|'
+  -e 's|LIBDIR|$(LIBDIR)|' -e 's|CC|$(CC) $(OPTS)|' -e 's|LIBS|$(LIBS)|' \
+  -e 's|BINDIR|$(BINDIR)|'
 
 camlc: camlc.tpl ../version.h
 	sed  $(SEDCOMMANDS) \