deprecate ill-defined set_nick API
[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
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  $(awkSCRIPTS)
14
15 # FIXME: read into AWK_SCRIPTS autotools builtin.
16 if HAVE_AWK
17 awkSCRIPTS = \
18  check-texinfo.awk
19 else
20 awkSCRIPTS =
21 endif
22
23 bin_SCRIPTS = \
24  gnunet-bugreport \
25  gnunet-suidfix
26
27 EXTRA_DIST = \
28  coverage.sh \
29  terminate.py.in \
30  gnunet_pyexpect.py.in \
31  gnunet_janitor.py.in \
32  gnunet-chk.py.in \
33  $(SCRIPTS) \
34  removetrailingwhitespace.py.in \
35  pydiffer.py.in \
36  gnunet-suidfix \
37  check-texinfo.awk.in
38
39 CLEANFILES = \
40   $(noinst_SCRIPTS)
41
42 # Use SUFFIX Extension rules, they are more portable for every
43 # implementation of 'make'.
44 # You'll also run into the "'%' is a GNU make extension warning"
45 # if you use this:
46 #
47 #%.py: %.py.in Makefile
48 #       $(do_subst) < $< > $@
49 #       chmod +x $@
50 #
51 # instead of this:
52 SUFFIXES = .py.in .py
53
54 .py.in.py:
55         $(AWK) -v py="$(PYTHON)" -f $(top_srcdir)/bin/dosubst.awk < $< > $@
56         chmod +x $@
57
58 if HAVE_AWK
59 check-texinfo.awk: check-texinfo.awk.in Makefile
60         $(AWK) -v awkay="$(AWK_BINARY)" -f $(top_srcdir)/bin/dosubst.awk < $(srcdir)/check-texinfo.awk.in > check-texinfo.awk
61         chmod +x check-texinfo.awk
62 endif