Skip to content
Snippets Groups Projects
Commit cc97aab8 authored by Ondřej Surý's avatar Ondřej Surý
Browse files

Honor $(DESTDIR) when installing sample files

parent 5994c51a
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment