firehol/sbin/Makefile.am
Philip Whineray 2c9a2d4000 Extract common functions to functions.common.sh
Version number detection, command detection, terminal setup and a few
other bits have moved.

The processed (not .in) scripts will look for it in e.g. /usr/local/lib/firehol
or wherever the system will install it. The .in scripts will look for it in
their own directory.

Updated the configure system so that it correctly replaces paths rather
via the Makefile rather than trying to subsitute NONE in configire.ac.

Extracted all of the configure-time command substitutions to a single
sed file which is used to process the script.in files. Extended the
package checks to cover this file.
2015-11-25 23:36:29 +00:00

65 lines
1.1 KiB
Makefile

# Process this file with automake to produce Makefile.in
scriptsin = \
firehol.in \
fireqos.in \
link-balancer.in \
update-ipsets.in \
vnetbuild.in
inclibdir = $(libdir)/firehol
SUFFIXES = .in
.in:
if [ "$@" = "commands.sed.in" ]; then \
true; \
elif sed \
-e '/^# Start defaults before configure/,/^# End/d' \
-e 's#[$$]prefix_POST#$(prefix)#g' \
-e 's#[$$]bindir_POST#$(bindir)#g' \
-e 's#[$$]libdir_POST#$(libdir)/firehol#g' \
-e 's#[$$]localstatedir_POST#$(localstatedir)#g' \
-e 's#[$$]sysconfdir_POST#$(sysconfdir)#g' \
-f commands.sed \
$< > $@.tmp; then \
mv "$@.tmp" "$@"; \
chmod 755 "$@"; \
else \
rm -f "$@.tmp"; \
false; \
fi
inclib_DATA = \
functions.common.sh
scripts =
if ENABLE_FIREHOL
scripts += firehol
endif
if ENABLE_FIREQOS
scripts += fireqos
endif
if ENABLE_LINK_BALANCER
scripts += link-balancer
endif
if ENABLE_UPDATE_IPSETS
scripts += update-ipsets
endif
if ENABLE_VNETBUILD
scripts += vnetbuild
endif
sbin_SCRIPTS = $(scripts)
EXTRA_DIST = \
commands.sed.in \
$(scriptsin) \
$(inclib_DATA)
uninstall-local:
@-rmdir --ignore-fail-on-non-empty $(DESTDIR)$(inclibdir)