summaryrefslogtreecommitdiff
path: root/contrib/scripts/gnunet-logread/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/scripts/gnunet-logread/Makefile.am')
-rw-r--r--contrib/scripts/gnunet-logread/Makefile.am14
1 files changed, 11 insertions, 3 deletions
diff --git a/contrib/scripts/gnunet-logread/Makefile.am b/contrib/scripts/gnunet-logread/Makefile.am
index 790b58fea..aa92dfe16 100644
--- a/contrib/scripts/gnunet-logread/Makefile.am
+++ b/contrib/scripts/gnunet-logread/Makefile.am
@@ -1,7 +1,7 @@
# This Makefile.am is in the public domain
AM_CPPFLAGS = -I$(top_srcdir)/src/include -I$(top_builddir)/src/include
-do_subst = $(AWK) -v py="$(PERL)" '{gsub("@PERLEXE@",py); print $$0}'
+do_subst = $(AWK) -v prl="$(PERL)" -v pfx="$(prefix)" '{if (/@SUBSTPREFIX@/) { gsub("@SUBSTPREFIX@",pfx)}; gsub("@PERLEXE@",prl); print $$0}'
SUFFIXES = .in
@@ -17,9 +17,17 @@ CLEANFILES= \
gnunet-logread \
gnunet-logread-ipc-sdedit
+if GNUNET_LOGREAD
+if HAVE_PERL
+bin_SCRIPTS = \
+ gnunet-logread-ipc \
+ $(CLEANFILES)
+else
noinst_SCRIPTS = \
- $(CLEANFILES) \
- gnunet-logread-ipc
+ gnunet-logread-ipc \
+ $(CLEANFILES)
+endif
+endif
EXTRA_DIST = \
gnunet-logread.in \