diff options
author | A. Karl Kornel <akkornel@stanford.edu> | 2016-01-22 23:36:04 -0800 |
---|---|---|
committer | Russ Allbery <eagle@eyrie.org> | 2016-01-23 15:21:55 -0800 |
commit | 67d9e9a278171ea7cd0e9e2c5b754a50887d4752 (patch) | |
tree | 23881f9f64f9a638330b5c6feec3291ee98c8d51 /Makefile.am | |
parent | 61a42ce222ed07da0c22a5394e5f3b59cc4bf690 (diff) |
Customize the path to Perl in the server scripts
The server scripts now have a unique string where the Perl path should
be, and the Makefile uses sed to insert the correct path at build time
(using the path determined by configure).
The server scripts now have .in extensions, and setting the executable
flag is handled by the Makefile.
We also have to change autogen, because it looks for the scripts in
the server directory when it generates the man pages.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index 87ba959..3e76885 100644 --- a/Makefile.am +++ b/Makefile.am @@ -210,13 +210,19 @@ warnings: # Remove some additional files. CLEANFILES = perl/t/lib/Test/RRA.pm perl/t/lib/Test/RRA/Automake.pm \ - perl/t/lib/Test/RRA/Config.pm + perl/t/lib/Test/RRA/Config.pm $(dist_sbin_SCRIPTS) MAINTAINERCLEANFILES = Makefile.in aclocal.m4 build-aux/compile \ build-aux/depcomp build-aux/install-sh build-aux/missing \ client/wallet.1 config.h.in config.h.in~ configure \ contrib/wallet-report.8 server/keytab-backend.8 \ server/wallet-admin.8 server/wallet-backend.8 server/wallet-report.8 +# For each of the perl scripts in server/, we need to fill in the path to the +# Perl binary that was located during configuration. +$(dist_sbin_SCRIPTS): + sed 's|WALLET_PERL_PATH|$(PERL)|' < $(srcdir)/$@.in > $(srcdir)/$@ + chmod a+x $(srcdir)/$@ + # Take appropriate actions in the Perl directory as well. We don't want to # always build the Perl directory in all-local, since otherwise Automake does # this for every target, which overrides some hacks we have to do for Debian |