Commit 730c6346 authored by Ondřej Surý's avatar Ondřej Surý

Add uninstall-local hook to remove installed example configuration

Change-Id: Id49b2b0a59cf9013aacc71e20f6764fc0e84d9fa
parent 2c976ec7
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment