blob: afba4c517322dabf6abf2e5ccce0db4f72ba21a1 (
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
24
25
26
27
28
29
|
--- src/launch/Makefile.orig 1995-02-22 10:33:26.000000000 +0100
+++ src/launch/Makefile 2011-11-12 10:26:48.000000000 +0100
@@ -11,22 +11,15 @@
# have write permission in the current directory if NFS-mounted...
install:
- (echo "#!$(BINDIR)/camlrun"; \
- echo "exit 2"; \
- cat testprog) > /tmp/testscr
- 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; \
- fi'
- rm -f /tmp/testscr
+ echo "#!$(BINDIR)/camlrun" > $(LIBDIR)/header
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) \
|