blob: 65520166f2c56c88af7e434e522c3883bd464e14 (
plain)
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
|
$NetBSD: patch-am,v 1.5 2006/10/03 21:06:25 adam Exp $
--- camlp4/lib/Makefile.orig 2006-09-14 17:32:20.000000000 +0200
+++ camlp4/lib/Makefile
@@ -44,19 +44,19 @@ compare:
done
install:
- -$(MKDIR) "$(LIBDIR)/camlp4"
- cp $(TARGET) *.mli "$(LIBDIR)/camlp4/."
- cp *.cmi *.cmo "$(LIBDIR)/camlp4/."
+ -${BSD_INSTALL_DATA_DIR} "$(LIBDIR)/camlp4"
+ ${BSD_INSTALL_DATA} $(TARGET) *.mli "$(LIBDIR)/camlp4/."
+ ${BSD_INSTALL_DATA} *.cmi *.cmo "$(LIBDIR)/camlp4/."
test -f $(TARGET:.cma=.cmxa) && $(MAKE) installopt LIBDIR="$(LIBDIR)" || true
installopt:
for f in $(TARGET:.cma=.cmxa) $(TARGET:.cma=.p.cmxa) *.cmx *.o ; do \
- test -f $$f && cp $$f "$(LIBDIR)/camlp4/." || true ; \
+ test -f $$f && ${BSD_INSTALL_DATA} $$f "$(LIBDIR)/camlp4/." || true ; \
done
# Special treatment for this one: some versions of make don't like $(A) in $(TARGET:.cma=.$(A))
target="`echo $(TARGET) | sed -e 's/\.cma$$/.$(A)/'`" ; \
if test -f $$target ; then \
- cp $$target "$(LIBDIR)/camlp4/." && ( cd "$(LIBDIR)/camlp4/." && $(RANLIB) $$target ) \
+ ${BSD_INSTALL_DATA} $$target "$(LIBDIR)/camlp4/." && ( cd "$(LIBDIR)/camlp4/." && $(RANLIB) $$target ) \
fi
include .depend
|