summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2013-05-27 17:03:01 +0200
committerOndřej Surý <ondrej@sury.org>2013-05-27 21:31:47 +0200
commit730c634676be416363cdfc039f3012a7303144d6 (patch)
treeb6ccf4d47c3a5cd8c8aded2307599dba6f65a083 /samples
parentFix make distcheck (up until uninstall check) (diff)
downloadknot-730c634676be416363cdfc039f3012a7303144d6.tar.xz
knot-730c634676be416363cdfc039f3012a7303144d6.zip
Add uninstall-local hook to remove installed example configuration
Change-Id: Id49b2b0a59cf9013aacc71e20f6764fc0e84d9fa
Diffstat (limited to 'samples')
-rw-r--r--samples/Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/samples/Makefile.am b/samples/Makefile.am
index 1b3035963..982a3be8d 100644
--- a/samples/Makefile.am
+++ b/samples/Makefile.am
@@ -20,5 +20,11 @@ install-data-local: knot.sample.conf
[ -f $(DESTDIR)/$(sysconfdir)/knot.sample.conf ] || \
$(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