aboutsummaryrefslogtreecommitdiffstats
path: root/src/swanctl/Makefile.am
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2014-04-17 18:59:42 +0200
committerMartin Willi <martin@revosec.ch>2014-05-07 15:48:16 +0200
commit5fdba04312988f31977232684386e47c3880dcfc (patch)
tree1772611b91d62de68ed89c9da5a309f0eb3d8321 /src/swanctl/Makefile.am
parent49d8a5f554540586ef65f2e2a8ebc62aa0e25e8a (diff)
downloadstrongswan-5fdba04312988f31977232684386e47c3880dcfc.tar.bz2
strongswan-5fdba04312988f31977232684386e47c3880dcfc.tar.xz
swanctl: Convert swanctl.conf to an options file and generate config
Diffstat (limited to 'src/swanctl/Makefile.am')
-rw-r--r--src/swanctl/Makefile.am10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/swanctl/Makefile.am b/src/swanctl/Makefile.am
index 4f0c1c2e6..3ed47fe84 100644
--- a/src/swanctl/Makefile.am
+++ b/src/swanctl/Makefile.am
@@ -29,7 +29,15 @@ AM_CPPFLAGS = \
-DSWANCTLDIR=\""${swanctldir}\"" \
-DPLUGINS=\""${s_plugins}\""
-EXTRA_DIST = swanctl.conf
+BUILT_SOURCES = swanctl.conf
+EXTRA_DIST = swanctl.opt swanctl.conf
+
+.opt.conf:
+ $(AM_V_GEN) \
+ $(PYTHON) $(top_srcdir)/conf/format-options.py -f conf $< > $(srcdir)/$@
+
+maintainer-clean-local:
+ cd $(srcdir) && rm -f swanctl.conf
install-data-local: swanctl.conf
test -e "$(DESTDIR)$(swanctldir)" || $(INSTALL) -d "$(DESTDIR)$(swanctldir)"