init: Don't build/install legacy systemd service if charon isn't built

If the user configures the build to only include charon-systemd the
"legacy" systemd service isn't useful, so skip its generation and
installation.
This commit is contained in:
Romain Francoise 2015-05-01 22:24:38 +02:00 committed by Martin Willi
parent b821575093
commit f5db98c038

View File

@ -2,8 +2,10 @@
SUBDIRS =
if USE_LEGACY_SYSTEMD
if USE_CHARON
SUBDIRS += systemd
endif
endif
if USE_SYSTEMD
if USE_SWANCTL