diff options
Diffstat (limited to 'samples/Makefile.am')
-rw-r--r-- | samples/Makefile.am | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/samples/Makefile.am b/samples/Makefile.am index f9aa616..755ef07 100644 --- a/samples/Makefile.am +++ b/samples/Makefile.am @@ -5,20 +5,26 @@ edit = sed \ -e 's|@prefix[@]|$(prefix)|g' \ -e 's|@sysconfdir[@]|$(sysconfdir)|g' -knot.sample.conf: Makefile +knot.sample.conf: knot.sample.conf.in rm -f $@ $@.tmp srcdir=''; \ test -f ./$@.in || srcdir=$(srcdir)/; \ $(edit) $${srcdir}$@.in >$@.tmp mv $@.tmp $@ -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 example.com.zone $(DESTDIR)/$(sysconfdir) + $(INSTALL_DATA) knot.sample.conf $(srcdir)/example.com.zone $(DESTDIR)/$(sysconfdir) + +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 clean-local: rm -f knot.sample.conf |