Commit cc97aab8 authored by Ondřej Surý's avatar Ondřej Surý

Honor $(DESTDIR) when installing sample files

parent 5994c51a
......@@ -15,10 +15,10 @@ knot.sample.conf: Makefile
knot.sample.conf: knot.sample.conf.in
install-data-local: knot.sample.conf
[ -d $(sysconfdir) ] || \
$(INSTALL) -d $(sysconfdir)
[ -f $(sysconfdir)/knot.sample.conf ] || \
$(INSTALL_DATA) knot.sample.conf example.com.zone $(sysconfdir)
[ -d $(DESTDIR)/$(sysconfdir) ] || \
$(INSTALL) -d $(DESTDIR)/$(sysconfdir)
[ -f $(DESTDIR)/$(sysconfdir)/knot.sample.conf ] || \
$(INSTALL_DATA) knot.sample.conf example.com.zone $(DESTDIR)/$(sysconfdir)
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