chiark / gitweb /
contrib/greet.in: Grotty script to send a TrIPE greeting packet.
[tripe] / contrib / Makefile.am
index 8802b62af1287e9c4c993451a848e1f39cee26b1..a81e14a8de9fe045eb6308c19f041d0c5b794ac9 100644 (file)
@@ -26,6 +26,7 @@
 include $(top_srcdir)/vars.am
 
 noinst_DATA             =
+noinst_SCRIPTS          =
 
 ###--------------------------------------------------------------------------
 ### Contributions.
@@ -52,4 +53,15 @@ 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 --------------------------------------------------