server/tests.at (TRIPE): Set command-line trace options from environment.
[tripe] / peerdb / Makefile.am
index 55477f4..20e1430 100644 (file)
@@ -34,24 +34,32 @@ man_MANS             =
 sbin_SCRIPTS           += tripe-newpeers
 CLEANFILES             += tripe-newpeers
 EXTRA_DIST             += tripe-newpeers.in
-EXTRA_DIST             += peers.in
 
 tripe-newpeers: tripe-newpeers.in Makefile
-       $(confsubst) $(srcdir)/tripe-newpeers.in >$@.new \
-               $(SUBSTITUTIONS) && \
+       $(SUBST) $(srcdir)/tripe-newpeers.in >$@.new $(SUBSTITUTIONS) && \
                chmod +x $@.new && mv $@.new $@
 
 ## Manual pages.
-man_MANS               += peers.cdb.5
-CLEANFILES             += peers.cdb.5
+man_MANS               += peers.cdb.5tripe
+CLEANFILES             += peers.cdb.5tripe
 EXTRA_DIST             += peers.cdb.5.in
 
-man_MANS               += peers.in.5
-CLEANFILES             += peers.in.5
+man_MANS               += peers.in.5tripe
+CLEANFILES             += peers.in.5tripe
 EXTRA_DIST             += peers.in.5.in
 
-man_MANS               += tripe-newpeers.8
-CLEANFILES             += tripe-newpeers.8
+man_MANS               += tripe-newpeers.8tripe
+CLEANFILES             += tripe-newpeers.8tripe
 EXTRA_DIST             += tripe-newpeers.8.in
 
+## Install peer database sources.
+EXTRA_DIST             += peers.in
+
+install-data-local:: peers.in
+       $(MKDIR_P) $(DESTDIR)$(configdir)/peers.d
+       $(INSTALL_DATA) $(srcdir)/peers.in \
+               $(DESTDIR)$(configdir)/peers.d/10base
+uninstall-local::
+       rm -f $(DESTDIR)$(configdir)/peers.d/10base
+
 ###----- That's all, folks --------------------------------------------------