summaryrefslogtreecommitdiff
path: root/contrib/scripts/gnunet-logread/Makefile.am
blob: e1183a88586b221cd0513a0a9f42448ccbdca893 (plain)
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
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include

do_subst = $(AWK) -v prl="$(PERL)" -v pfx="$(prefix)" '{if (/@SUBSTPREFIX@/) { gsub("@SUBSTPREFIX@",pfx)}; gsub("@PERLEXE@",prl); print $$0}'

SUFFIXES = .in

gnunet-logread: gnunet-logread.in Makefile
	$(do_subst) < $(srcdir)/gnunet-logread.in > gnunet-logread
	chmod +x gnunet-logread

gnunet-logread-ipc-sdedit: gnunet-logread-ipc-sdedit.in Makefile
	$(do_subst) < $(srcdir)/gnunet-logread-ipc-sdedit.in > gnunet-logread-ipc-sdedit
	chmod +x gnunet-logread-ipc-sdedit

CLEANFILES=	\
		gnunet-logread \
		gnunet-logread-ipc-sdedit

if GNUNET_LOGREAD
bin_SCRIPTS = \
		gnunet-logread-ipc \
		$(CLEANFILES)
else
noinst_SCRIPTS =		\
		gnunet-logread-ipc \
		$(CLEANFILES)
endif

EXTRA_DIST = \
  gnunet-logread.in \
  gnunet-logread-ipc-sdedit.in \
  gnunet-logread-ipc