move gnunet-download-manager to contrib
[oweals/gnunet.git] / contrib / scripts / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
3
4 SUBDIRS = gnunet-logread gnunet-download-manager
5
6 noinst_SCRIPTS = \
7  terminate.py \
8  pydiffer.py \
9  removetrailingwhitespace.py \
10  gnunet_pyexpect.py \
11  gnunet_janitor.py \
12  gnunet-chk.py
13
14 bin_SCRIPTS = \
15  gnunet-bugreport
16
17 EXTRA_DIST = \
18  coverage.sh \
19  terminate.py.in \
20  gnunet_pyexpect.py.in \
21  gnunet_janitor.py.in \
22  gnunet-chk.py.in \
23  $(SCRIPTS) \
24  removetrailingwhitespace.py.in \
25  pydiffer.py.in
26
27 CLEANFILES = \
28   $(noinst_SCRIPTS)
29
30 do_subst = $(SED) -e 's,[@]PYTHON[@],$(PYTHON),g'
31
32 # Use SUFFIX Extension rules, they are more portable for every
33 # implementation of 'make'.
34 # You'll also run into the "'%' is a GNU make extension warning"
35 # if you use this:
36 #
37 #%.py: %.py.in Makefile
38 #       $(do_subst) < $< > $@
39 #       chmod +x $@
40 #
41 # instead of this:
42 SUFFIXES = .py.in .py
43
44 .py.in.py:
45         $(do_subst) < $< > $@
46         chmod +x $@