diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-05-27 17:03:01 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2013-05-27 21:31:47 +0200 |
commit | 730c634676be416363cdfc039f3012a7303144d6 (patch) | |
tree | b6ccf4d47c3a5cd8c8aded2307599dba6f65a083 /samples | |
parent | Fix make distcheck (up until uninstall check) (diff) | |
download | knot-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.am | 6 |
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 |