diff options
| author | Jeremy Sowden <jeremy@azazel.net> | 2025-09-17 21:34:54 +0100 |
|---|---|---|
| committer | Florian Westphal <fw@strlen.de> | 2025-10-31 12:37:40 +0100 |
| commit | 31007975ccf5a389b76e1bc6f5f7215847f394ef (patch) | |
| tree | eefea776ffc880f98c96fd5e536df8c79a9674ba /Makefile.am | |
| parent | a642381ae442a7cb90b71f49b017057ca745cf36 (diff) | |
build: don't install ancillary files without systemd service file
If the systemd service file is not installed, currently the related man-page
and example nft file are still installed. Instead only install them when the
service file is installed.
Fixes: 107580cfa85c ("build: disable --with-unitdir by default")
Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'Makefile.am')
| -rw-r--r-- | Makefile.am | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index fac7ad55..bf1c3c44 100644 --- a/Makefile.am +++ b/Makefile.am @@ -421,10 +421,14 @@ EXTRA_DIST += \ tools/nftables.service.in \ $(NULL) +if BUILD_SERVICE CLEANFILES += tools/nftables.service +endif pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = libnftables.pc + +if BUILD_SERVICE unit_DATA = tools/nftables.service man_MANS = tools/nftables.service.8 doc_DATA = files/nftables/main.nft @@ -432,6 +436,7 @@ doc_DATA = files/nftables/main.nft tools/nftables.service: tools/nftables.service.in ${top_builddir}/config.status ${AM_V_GEN}${MKDIR_P} tools ${AM_V_at}sed -e 's|@''sbindir''@|${sbindir}|g;s|@''pkgsysconfdir''@|${pkgsysconfdir}|g' <${srcdir}/tools/nftables.service.in >$@ +endif if !BUILD_DISTCHECK TESTS = tests/build/run-tests.sh \ |
