init: Don't build/install legacy systemd service if charon isn't built
authorRomain Francoise <romain@orebokech.com>
Fri, 1 May 2015 20:24:38 +0000 (22:24 +0200)
committerMartin Willi <martin@revosec.ch>
Mon, 4 May 2015 11:25:30 +0000 (13:25 +0200)
If the user configures the build to only include charon-systemd the
"legacy" systemd service isn't useful, so skip its generation and
installation.

init/Makefile.am

index a72706c..6fff422 100644 (file)
@@ -2,8 +2,10 @@
 SUBDIRS =
 
 if USE_LEGACY_SYSTEMD
+if USE_CHARON
   SUBDIRS += systemd
 endif
+endif
 
 if USE_SYSTEMD
 if USE_SWANCTL