This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

A patch for manual install


If mantal/dir is read-only, "make install" will fail in manual. Here
is a patch.


H.J.
----
2001-03-17  H.J. Lu  <hjl@gnu.org>

	* manual/Makefile (install): Use $(INSTALL_DATA) instead of
	cp to install `dir'.

diff -u -p -r1.1.1.3 Makefile
--- manual/Makefile	2001/01/21 01:22:23	1.1.1.3
+++ manual/Makefile	2001/03/18 06:16:45
@@ -178,14 +178,14 @@ ifneq ($(strip $(MAKEINFO)),:)
 ifneq ($(OLD_DEBIAN_INSTALL_INFO),yes)
 install: $(inst_infodir)/libc.info dir-add.info
 	@if $(SHELL) -c '$(INSTALL_INFO) --version' >/dev/null 2>&1; then \
-	 test -f $(inst_infodir)/dir || cp dir $(inst_infodir);\
+	 test -f $(inst_infodir)/dir || $(INSTALL_DATA) dir $(inst_infodir);\
 	 $(INSTALL_INFO) --info-dir=$(inst_infodir) $(inst_infodir)/libc.info;\
 	 $(INSTALL_INFO) --info-dir=$(inst_infodir) dir-add.info;\
 	else : ; fi
 else
 install: $(inst_infodir)/libc.info dir-add.info
 	@if $(SHELL) -c '$(INSTALL_INFO) --version' >/dev/null 2>&1; then \
-	  test -f $(inst_infodir)/dir || cp dir $(inst_infodir);\
+	  test -f $(inst_infodir)/dir || $(INSTALL_DATA) dir $(inst_infodir);\
 	 $(INSTALL_INFO) --info-dir=$(inst_infodir) \
 	     --section '^GNU Libraries:' 'GNU Libraries:' \
 	     $(inst_infodir)/libc.info;\


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]