--- bird-1.0.11.orig/tools/Makefile.in 2004-05-31 11:53:02.000000000 -0600 +++ bird-1.0.11/tools/Makefile.in 2006-02-14 09:20:49.000000000 -0700 @@ -5,6 +5,8 @@ .PHONY: all daemon client subdir depend clean distclean tags docs userdocs progdocs +DESTDIR = + all: sysdep/paths.h .dep-stamp subdir daemon @CLIENT@ daemon: $(exedir)/bird @@ -43,13 +45,13 @@ cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) $(client-dirs) -name *.[chY]` install: all - $(INSTALL) -d $(sbindir) $(sysconfdir) $(localstatedir) - $(INSTALL_PROGRAM) -s $(exedir)/bird $(sbindir)/ + $(INSTALL) -d $(DESTDIR)$(sbindir) $(DESTDIR)$(sysconfdir) $(DESTDIR)$(localstatedir) + $(INSTALL_PROGRAM) -s $(exedir)/bird $(DESTDIR)$(sbindir)/ if test -n "@CLIENT@" ; then \ - $(INSTALL_PROGRAM) -s $(exedir)/birdc $(sbindir)/ ; \ + $(INSTALL_PROGRAM) -s $(exedir)/birdc $(DESTDIR)$(sbindir)/ ; \ fi - if ! test -f $(sysconfdir)/bird.conf ; then \ - $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(sysconfdir)/bird.conf ; \ + if ! test -f $(DESTDIR)$(sysconfdir)/bird.conf ; then \ + $(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)$(sysconfdir)/bird.conf ; \ else \ echo "Not overwriting old bird.conf" ; \ fi