2.10.91: $(DESTDIR) ignored for BFD headers

Maciej W. Rozycki macro@ds2.pg.gda.pl
Fri Jan 19 11:52:00 GMT 2001


Hello,

 Digged from my old patchpile due to the incoming 2.11 release... 

 BFD's Makefile still ignores the automake's standard DESTDIR variable for
local installation targets.  I've already reported it including a fix
several months ago.  Here is the proposed patch again. 

bfd/ChangeLog:

2001-01-19  Maciej W. Rozycki  <macro@ds2.pg.gda.pl>

	* Makefile.am (install-data-local): Make use of $(DESTDIR).
	* Makefile.in: Regenerate.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

binutils-2.9.4-bfd-headers.patch
diff -u --recursive --new-file binutils.macro/bfd/Makefile.am binutils/bfd/Makefile.am
--- binutils.macro/bfd/Makefile.am	Thu May 27 21:42:07 1999
+++ binutils/bfd/Makefile.am	Tue Jun 22 11:16:44 1999
@@ -509,10 +509,10 @@
 # Install BFD include file, and others that it needs.
 install-data-local: $(BFD_H)
 	@$(NORMAL_INSTALL)
-	$(mkinstalldirs) $(includedir)
-	$(INSTALL_DATA) $(BFD_H) $(includedir)/bfd.h
-	$(INSTALL_DATA) $(INCDIR)/ansidecl.h $(includedir)/ansidecl.h
-	$(INSTALL_DATA) $(INCDIR)/bfdlink.h $(includedir)/bfdlink.h
+	$(mkinstalldirs) $(DESTDIR)$(includedir)
+	$(INSTALL_DATA) $(BFD_H) $(DESTDIR)$(includedir)/bfd.h
+	$(INSTALL_DATA) $(INCDIR)/ansidecl.h $(DESTDIR)$(includedir)/ansidecl.h
+	$(INSTALL_DATA) $(INCDIR)/bfdlink.h $(DESTDIR)$(includedir)/bfdlink.h
 
 # Have to get rid of .dep1 here so that "$?" later includes all of $(CFILES).
 .dep: dep.sed $(CFILES) $(HFILES) bfd.h



More information about the Binutils mailing list