From c5d729bcff1471a357e75f10f5a782154983fd8f Mon Sep 17 00:00:00 2001 From: ng0 Date: Tue, 19 Mar 2019 16:42:33 +0000 Subject: contrib: Move scripts content to scripts/Makefile Actually build the contrib perl script. Add an m4 script for perl. --- contrib/scripts/Makefile.am | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 contrib/scripts/Makefile.am (limited to 'contrib/scripts/Makefile.am') diff --git a/contrib/scripts/Makefile.am b/contrib/scripts/Makefile.am new file mode 100644 index 000000000..a9eadf337 --- /dev/null +++ b/contrib/scripts/Makefile.am @@ -0,0 +1,43 @@ +# This Makefile.am is in the public domain +AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include + +SUBDIRS = gnunet-logread + +noinst_SCRIPTS = \ + terminate.py \ + pydiffer.py \ + removetrailingwhitespace.py \ + gnunet_pyexpect.py \ + gnunet_janitor.py \ + gnunet-chk.py + +EXTRA_DIST = \ + coverage.sh \ + terminate.py.in \ + gnunet_pyexpect.py.in \ + gnunet_janitor.py.in \ + gnunet-chk.py.in \ + gnunet-bugreport \ + removetrailingwhitespace.py.in \ + pydiffer.py.in + +CLEANFILES = \ + $(noinst_SCRIPTS) + +do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g' + +# Use SUFFIX Extension rules, they are more portable for every +# implementation of 'make'. +# You'll also run into the "'%' is a GNU make extension warning" +# if you use this: +# +#%.py: %.py.in Makefile +# $(do_subst) < $< > $@ +# chmod +x $@ +# +# instead of this: +SUFFIXES = .py.in .py + +.py.in.py: + $(do_subst) < $< > $@ + chmod +x $@ -- cgit v1.2.3