Gmane
Favicon
From: Eugene Crosser <crosser <at> average.org>
Subject: [un]install-*-local/install-*-hook does not honor DESTDIR
Newsgroups: gmane.comp.sysutils.automake.bugs
Date: 2004-12-19 12:29:06 GMT (4 years, 28 weeks, 1 day, 10 hours and 6 minutes ago)
Dear gentlemen.

It seems that as of versions 1.9.2 and 1.9.3 at least, automake does not 
  set DESTDIR when it executes install-data-local and similar targets. 
if you do (as documentation suggests)

install-data-local:
              $(INSTALL_DATA) $(srcdir)/afile $(DESTDIR)/etc/afile

and run "make install DESTDIR=/new/root", all "standard" targets are 
installed inside /new/root, but "afile" is installed into real /etc/.

Minimum harm from it is that it breaks "make distcheck", but it may 
seriously wreak havoc if "make install DESTDIR=..." is run as root...

Regards,
Eugene