From e61249277b61b6601adfed28a96febdb549edc6c Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Fri, 11 May 2012 01:10:52 -0700 Subject: [PATCH] * Makefile.in (install-arch-indep): Use INSTALL_DATA for the DOC file. --- ChangeLog | 1 + Makefile.in | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 61f29a9ee7..c667946521 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2012-05-11 Glenn Morris * Makefile.in (install-arch-indep): There are no more Makefile.c files. + Use INSTALL_DATA for the DOC file. 2012-05-10 Glenn Morris diff --git a/Makefile.in b/Makefile.in index a8271f0ec9..ac6ad2b5ac 100644 --- a/Makefile.in +++ b/Makefile.in @@ -455,6 +455,8 @@ MV_DIRS = for i in $$dir; do rm -fr `basename "$$i"` ; mv "$$i" . ; done ### Install the executables that were compiled specifically for this machine. ### It would be nice to do something for a parallel make ### to ensure that install-arch-indep finishes before this starts. +### (TODO Why would it be nice? Why not just make this depend on +### install-arch-indep then?) install-arch-dep: mkdir (cd lib-src; \ $(MAKE) install $(MFLAGS) prefix=${prefix} \ @@ -579,11 +581,10 @@ install-arch-indep: mkdir info install-etc docfile="DOC"; \ fi; \ echo "Copying etc/$${docfile} to $(DESTDIR)${docdir} ..." ; \ - (cd ./etc; tar -chf - $${docfile}) \ - |(cd $(DESTDIR)${docdir}; umask 022; tar -xvf - && cat > /dev/null) || exit 1; \ + ${INSTALL_DATA} etc/$${docfile} $(DESTDIR)${docdir}/$${docfile}; \ (cd $(DESTDIR)$(docdir); \ $(set_installuser); \ - chown $${installuser} DOC*; chmod a+r DOC*; \ + chown $${installuser} DOC*; \ if test "`echo DOC-*`" != "DOC-*"; then rm -f DOC; fi); \ else true; fi -unset CDPATH; \ -- 2.20.1