contrib: Do proper substitutions on contrib files.
[tripe] / contrib / Makefile.am
index fe5b472..5d71313 100644 (file)
 
 include $(top_srcdir)/vars.am
 
-dist_noinst_DATA        =
+noinst_DATA             =
 
 ###--------------------------------------------------------------------------
 ### Contributions.
 
 ## Glue for `userv-ipif'.
-dist_noinst_DATA       += tripe-ipif ipif-peers
+noinst_DATA            += tripe-ipif ipif-peers
+EXTRA_DIST             += tripe-ipif.in ipif-peers.in
+CLEANFILES             += tripe-ipif ipif-peers
+
+tripe-ipif: tripe-ipif.in Makefile
+       $(SUBST) $(srcdir)/tripe-ipif.in >$@.new $(SUBSTITUTIONS) && \
+               mv $@.new $@
+
+ipif-peers: ipif-peers.in Makefile
+       $(SUBST) $(srcdir)/ipif-peers.in >$@.new $(SUBSTITUTIONS) && \
+               mv $@.new $@
 
 ###----- That's all, folks --------------------------------------------------