contrib/greet.in: Grotty script to send a TrIPE greeting packet.
[tripe] / contrib / Makefile.am
index fe5b472..a81e14a 100644 (file)
 
 include $(top_srcdir)/vars.am
 
-dist_noinst_DATA        =
+noinst_DATA             =
+noinst_SCRIPTS          =
 
 ###--------------------------------------------------------------------------
 ### 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 $@
+
+## Upstart fragment.  This forks with Maemo's ancient upstart.
+noinst_DATA            += tripe-upstart
+EXTRA_DIST             += tripe-upstart.in
+CLEANFILES             += tripe-upstart
+
+tripe-upstart: tripe-upstart.in Makefile
+       $(SUBST) $(srcdir)/tripe-upstart.in >$@.new $(SUBSTITUTIONS) && \
+               mv $@.new $@
+
+## `greet' utility for stimulating passive connections.
+if HAVE_PYTHON
+noinst_SCRIPTS         += greet
+EXTRA_DIST             += greet.in
+CLEANFILES             += greet
+
+greet: greet.in Makefile
+       $(SUBST) $(srcdir)/greet.in >$@.new $(SUBSTITUTIONS) && \
+               chmod +x $@.new && mv $@.new $@
+endif
 
 ###----- That's all, folks --------------------------------------------------