aboutsummaryrefslogtreecommitdiff
path: root/contrib/scripts/Makefile.am
blob: 204167e82d47184a47ee7e856ec2fd7b9d79c44f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
libexecdir= $(pkglibdir)/libexec/

SUBDIRS = gnunet-logread

# FIXME: read into AWK_SCRIPTS autotools builtin.
if HAVE_AWK
awkSCRIPTS = \
  check-texinfo.awk
else
awkSCRIPTS =
endif

noinst_SCRIPTS = \
  terminate.py \
  pydiffer.py \
  removetrailingwhitespace.py \
  gnunet_pyexpect.py \
  gnunet_janitor.py \
  gnunet-chk.py \
  $(awkSCRIPTS)

bin_SCRIPTS = \
  gnunet-bugreport

# This script is not documented and its usage is quite uncommon.
libexec_SCRIPTS = \
  gnunet-suidfix

EXTRA_DIST = \
  coverage.sh \
  terminate.py.in \
  gnunet_pyexpect.py.in \
  gnunet_janitor.py.in \
  gnunet-chk.py.in \
  removetrailingwhitespace.py.in \
  pydiffer.py.in \
  check-texinfo.awk.in \
  build-install-gnunet-debian10.sh \
  process_log.sh \
  generate-monkey-db.sh \
  find_typedefs.py \
  pydmesg \
  visualize_stats.sh \
  debug \
  build_cscope.sh \
  lint/lint-man.sh \
  lint/lint-python.sh \
  revisionary.sh \
  regression.sh \
  doc/texinfo-hacks.el \
  afferify \
  zonewalk-to-types.sh \
  gdb-iterate-dll.py \
  $(SCRIPTS)


CLEANFILES = \
  $(noinst_SCRIPTS)

# 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:
	$(AWK) -v py="$(PYTHON)" -f $(top_srcdir)/scripts/dosubst.awk < $< > $@
	chmod +x $@

if HAVE_AWK
check-texinfo.awk: check-texinfo.awk.in Makefile
	$(AWK) -v awkay="$(AWK_BINARY)" -f $(top_srcdir)/scripts/dosubst.awk < $(srcdir)/check-texinfo.awk.in > check-texinfo.awk
	chmod +x check-texinfo.awk
endif