* Make "make install-strip" works properly, and "make install"
authorMartin Pool <mbp@samba.org>
Wed, 20 Mar 2002 05:53:40 +0000 (05:53 +0000)
committerMartin Pool <mbp@samba.org>
Wed, 20 Mar 2002 05:53:40 +0000 (05:53 +0000)
      accepts a DESTDIR variable for help in building binary packages.
      (Peter Breitenlohner)

Makefile.in
NEWS

index 74fe4401222e75b31225bee6b049915fd8de3153..c88a890b8aad9f39895d5b88ca5e177589fe5ca5 100644 (file)
@@ -53,15 +53,15 @@ all: rsync
 man: rsync.1 rsyncd.conf.5
 
 install: all
-       -mkdir -p ${bindir}
-       ${INSTALLCMD} -m 755 rsync ${bindir}
-       -mkdir -p ${mandir}/man1
-       -mkdir -p ${mandir}/man5
-       ${INSTALLMAN} -m 644 $(srcdir)/rsync.1 ${mandir}/man1
-       ${INSTALLMAN} -m 644 $(srcdir)/rsyncd.conf.5 ${mandir}/man5
+       -mkdir -p ${DESTDIR}${bindir}
+       ${INSTALLCMD} ${STRIP} -m 755 rsync ${DESTDIR}${bindir}
+       -mkdir -p ${DESTDIR}${mandir}/man1
+       -mkdir -p ${DESTDIR}${mandir}/man5
+       ${INSTALLMAN} -m 644 $(srcdir)/rsync.1 ${DESTDIR}${mandir}/man1
+       ${INSTALLMAN} -m 644 $(srcdir)/rsyncd.conf.5 ${DESTDIR}${mandir}/man5
 
 install-strip:
-       $(MAKE) INSTALLCMD='$(INSTALLCMD) -s' install
+       $(MAKE) STRIP='-s' install
 
 rsync: $(OBJS)
        @echo "Please ignore warnings below about mktemp -- it is used in a safe way"
diff --git a/NEWS b/NEWS
index ef198c40032ed7eb17051d04007f06b768a9bcd4..6548dd6b5930a5ad74cac061d33d900c7bd34529 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,11 @@ rsync changes since last release
       time taken; otherwise show expected time to complete. (Cameron
       Simpson)
 
+    * Make "make install-strip" works properly, and "make install"
+      accepts a DESTDIR variable for help in building binary packages.
+      (Peter Breitenlohner)
+
+
   BUG FIXES:
 
     * Fix situation where failure to fork (e.g. because out of process