swanctl: Convert swanctl.conf to an options file and generate config
This commit is contained in:
committed by
Martin Willi
parent
49d8a5f554
commit
5fdba04312
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user