Revision 99355da1 tools/Makefile.in

View differences:

tools/Makefile.in
43 43
	cd $(srcdir) ; etags -lc `find $(static-dirs) $(addprefix $(objdir)/,$(dynamic-dirs)) $(client-dirs) -name *.[chY]`
44 44

  
45 45
install: all
46
	$(INSTALL) -d $(sbindir) $(sysconfdir) $(localstatedir)
47
	$(INSTALL_PROGRAM) -s $(exedir)/bird $(sbindir)/bird@SUFFIX6@
46
	$(INSTALL) -d $(DESTDIR)/$(sbindir) $(DESTDIR)/$(sysconfdir) $(DESTDIR)/$(localstatedir)
47
	$(INSTALL_PROGRAM) -s $(exedir)/bird $(DESTDIR)/$(sbindir)/bird@SUFFIX6@
48 48
	if test -n "@CLIENT@" ; then								\
49
		$(INSTALL_PROGRAM) -s $(exedir)/birdc $(sbindir)/birdc@SUFFIX6@ ;				\
49
		$(INSTALL_PROGRAM) -s $(exedir)/birdc $(DESTDIR)/$(sbindir)/birdc@SUFFIX6@ ;				\
50 50
	fi
51
	if ! test -f $(sysconfdir)/bird@SUFFIX6@.conf ; then						\
52
		$(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(sysconfdir)/bird@SUFFIX6@.conf ;	\
51
	if ! test -f $(DESTDIR)/$(sysconfdir)/bird@SUFFIX6@.conf ; then						\
52
		$(INSTALL_DATA) $(srcdir)/doc/bird.conf.example $(DESTDIR)/$(sysconfdir)/bird@SUFFIX6@.conf ;	\
53 53
	else											\
54 54
		echo "Not overwriting old bird@SUFFIX@.conf" ;						\
55 55
	fi
56 56

  
57 57
install-docs:
58
	$(INSTALL) -d $(docdir)
59
	$(INSTALL_DATA) $(srcdir)/doc/{bird,prog}{,-*}.html $(docdir)/
58
	$(INSTALL) -d $(DESTDIR)/$(docdir)
59
	$(INSTALL_DATA) $(srcdir)/doc/{bird,prog}{,-*}.html $(DESTDIR)/$(docdir)/
60 60

  
61 61
clean:
62 62
	find . -name "*.[oa]" -o -name core -o -name depend -o -name "*.html" | xargs rm -f

Also available in: Unified diff