blob: 1f7be0b3d11e39b01781d1f63f7be0de4191da76 (
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.3 2005/02/04 21:35:51 adrianp Exp $
--- camlp4/lib/Makefile.orig 2004-10-14 16:11:43.000000000 +0100
+++ camlp4/lib/Makefile 2004-10-14 16:14:08.000000000 +0100
@@ -42,19 +42,19 @@
done
install:
- -$(MKDIR) "$(LIBDIR)/camlp4"
- cp $(TARGET) *.mli "$(LIBDIR)/camlp4/."
- cp *.cmi "$(LIBDIR)/camlp4/."
+ -${BSD_INSTALL_DATA_DIR} $(LIBDIR)/camlp4
+ ${BSD_INSTALL_DATA} $(TARGET) *.mli "$(LIBDIR)/camlp4/."
+ ${BSD_INSTALL_DATA} *.cmi "$(LIBDIR)/camlp4/."
test -f $(TARGET:.cma=.cmxa) && $(MAKE) installopt LIBDIR="$(LIBDIR)" || true
installopt:
for f in $(TARGET:.cma=.cmxa) $(TARGET:.cma=.p.cmxa) *.cmx ; 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
|