summaryrefslogtreecommitdiff
path: root/time/gnutime/patches/patch-ab
blob: 29fdc3fa36f5bbc7bceb5c3927c1dbe5dd19fe95 (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
30
31
32
33
34
35
36
37
38
39
40
41
$NetBSD: patch-ab,v 1.5 2009/07/07 20:21:37 joerg Exp $

--- Makefile.in.orig	1996-07-11 23:07:03.000000000 +0200
+++ Makefile.in
@@ -114,10 +114,10 @@ distclean-binPROGRAMS:
 maintainer-clean-binPROGRAMS:
 
 install-binPROGRAMS: $(bin_PROGRAMS)
-	$(mkinstalldirs) $(bindir)
+	$(mkinstalldirs) ${DESTDIR}$(bindir)
 	list="$(bin_PROGRAMS)"; for p in $$list; do \
 	  if test -f $$p; then \
-	    $(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
+	    $(INSTALL_PROGRAM) $$p ${DESTDIR}$(bindir)/`echo $$p|sed '$(transform)'`; \
 	  else :; fi; \
 	done
 
@@ -176,10 +176,11 @@ time.info: time.texi version.texi
 	TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
 
 install-info: $(INFO_DEPS)
-	$(mkinstalldirs) $(infodir)
+	$(mkinstalldirs) ${DESTDIR}$(infodir)
 	for file in $(INFO_DEPS); do		\
-	  for ifile in `cd $(srcdir) && echo $$file*`; do \
-	    $(INSTALL_DATA) $(srcdir)/$$ifile $(infodir)/$$ifile; \
+	  for ifile in `cd $(srcdir) && echo $$file $$file-[1-9]*`; do \
+	    test ! -f $(srcdir)/$$ifile || \
+	    $(INSTALL_DATA) $(srcdir)/$$ifile ${DESTDIR}$(infodir)/$$ifile; \
 	  done;					\
 	done
 
@@ -279,7 +280,7 @@ all: $(INFO_DEPS) $(PROGRAMS) Makefile
 install-strip:
 	$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
 installdirs:
-	$(mkinstalldirs)  $(bindir) $(infodir)
+	$(mkinstalldirs)  ${DESTDIR}$(bindir) ${DESTDIR}$(infodir)
 
 
 mostlyclean-generic: