diff options
Diffstat (limited to 'samples/Makefile.am')
-rw-r--r-- | samples/Makefile.am | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/samples/Makefile.am b/samples/Makefile.am index 755ef07..73f8760 100644 --- a/samples/Makefile.am +++ b/samples/Makefile.am @@ -3,7 +3,10 @@ edit = sed \ -e 's|@package[@]|$(PACKAGE_NAME)|g' \ -e 's|@localstatedir[@]|$(localstatedir)|g' \ -e 's|@prefix[@]|$(prefix)|g' \ - -e 's|@sysconfdir[@]|$(sysconfdir)|g' + -e 's|@sysconfdir[@]|$(sysconfdir)|g' \ + -e 's|@config_dir[@]|$(config_dir)|g' \ + -e 's|@storage_dir[@]|$(storage_dir)|g' \ + -e 's|@run_dir[@]|$(run_dir)|g' knot.sample.conf: knot.sample.conf.in rm -f $@ $@.tmp @@ -15,16 +18,16 @@ knot.sample.conf: knot.sample.conf.in EXTRA_DIST = knot.sample.conf.in knot.full.conf knot.keys.conf example.com.zone install-data-local: knot.sample.conf - [ -d $(DESTDIR)/$(sysconfdir) ] || \ - $(INSTALL) -d $(DESTDIR)/$(sysconfdir) - [ -f $(DESTDIR)/$(sysconfdir)/knot.sample.conf ] || \ - $(INSTALL_DATA) knot.sample.conf $(srcdir)/example.com.zone $(DESTDIR)/$(sysconfdir) + [ -d $(DESTDIR)/$(config_dir) ] || \ + $(INSTALL) -d $(DESTDIR)/$(config_dir) + [ -f $(DESTDIR)/$(config_dir)/knot.sample.conf ] || \ + $(INSTALL_DATA) knot.sample.conf $(srcdir)/example.com.zone $(DESTDIR)/$(config_dir) uninstall-local: - [ -f $(DESTDIR)/$(sysconfdir)/knot.sample.conf ] && \ - rm -f $(DESTDIR)/$(sysconfdir)/knot.sample.conf - [ -f $(DESTDIR)/$(sysconfdir)/example.com.zone ] && \ - rm -f $(DESTDIR)/$(sysconfdir)/example.com.zone + [ -f $(DESTDIR)/$(config_dir)/knot.sample.conf ] && \ + rm -f $(DESTDIR)/$(config_dir)/knot.sample.conf + [ -f $(DESTDIR)/$(config_dir)/example.com.zone ] && \ + rm -f $(DESTDIR)/$(config_dir)/example.com.zone clean-local: rm -f knot.sample.conf |