firehol/sbin/Makefile.am
2016-02-22 06:00:11 +01:00

67 lines
1.2 KiB
Makefile

# Process this file with automake to produce Makefile.in
libarchinddir = $(prefix)/lib
scriptsin = \
firehol.in \
fireqos.in \
link-balancer.in \
update-ipsets.in \
vnetbuild.in
inclibdir = $(libarchinddir)/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#$(inclibdir)#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)