Ahhh yes. In long:
http://www.gnu.org/prep/standards/html_node/DESTDIR.html In short: This is for support of Gentoo, Debian and RPM packaging suites, which often build for a specific prefix, but stage the installation in a secondary location. That location in DESTDIR. DESTDIR is never referenced in a rule...it is purely an install time metric. This is very useful (and most important) for building root filesystems for cross compilation environments. (where you want to install in /newroot but you want prefix to be /usr) Does this help? Phil On Tue, 2006-11-21 at 08:40 -0800, Stephane Eranian wrote: > Phil, > > On Tue, Nov 21, 2006 at 05:20:56PM +0100, Philip J. Mucci wrote: > > Consider yourself bought one virtual, non-alcoholic beer. > > > I'll remind you ;-> > > Speaking of Makefiles, could you remind me the goal of DESTDIR in > the following rule: > > install: $(TARGETS) > -mkdir -p $(DESTDIR)$(LIBDIR) > $(INSTALL) -m 644 $(ALIBPFM) $(DESTDIR)$(LIBDIR) > $(INSTALL) $(SLIBPFM) $(DESTDIR)$(LIBDIR) > cd $(DESTDIR)$(LIBDIR); $(LN) $(SLIBPFM) $(VLIBPFM) > cd $(DESTDIR)$(LIBDIR); $(LN) $(SLIBPFM) libpfm.so > > If we had this: > > install_prefix=/usr/local > PREFIX ?=$(install_prefix) > ^^^ > LIBDIR=$(PREFIX)/lib > INCDIR=$(PREFIX)/include > MANDIR=$(PREFIX)/share/man > > Instead of: > > install_prefix=/usr/local > PREFIX=$(install_prefix) > ^^ > LIBDIR=$(PREFIX)/lib > INCDIR=$(PREFIX)/include > MANDIR=$(PREFIX)/share/man > _______________________________________________ perfmon mailing list [email protected] http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/
