summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorOndřej Surý <ondrej@sury.org>2013-05-27 16:15:24 +0200
committerOndřej Surý <ondrej@sury.org>2013-05-27 21:31:47 +0200
commit2c976ec788e2f434cd0d534ab467e1f19d8ff7a5 (patch)
treef88e0fd480c5875b0490eacfb04dfc7760383ae5 /samples
parentfix some warnings caused by '-pedantic' compiler flag (diff)
downloadknot-2c976ec788e2f434cd0d534ab467e1f19d8ff7a5.tar.xz
knot-2c976ec788e2f434cd0d534ab467e1f19d8ff7a5.zip
Fix make distcheck (up until uninstall check)
Change-Id: I0a963766fa4b4494e7eca53a6edd613632f6cbe1
Diffstat (limited to 'samples')
-rw-r--r--samples/Makefile.am6
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/Makefile.am b/samples/Makefile.am
index f9aa616f9..1b3035963 100644
--- a/samples/Makefile.am
+++ b/samples/Makefile.am
@@ -5,20 +5,20 @@ edit = sed \
-e 's|@prefix[@]|$(prefix)|g' \
-e 's|@sysconfdir[@]|$(sysconfdir)|g'
-knot.sample.conf: Makefile
+knot.sample.conf: knot.sample.conf.in
rm -f $@ $@.tmp
srcdir=''; \
test -f ./$@.in || srcdir=$(srcdir)/; \
$(edit) $${srcdir}$@.in >$@.tmp
mv $@.tmp $@
-knot.sample.conf: knot.sample.conf.in
+EXTRA_DIST = knot.sample.conf.in example.com.zone
install-data-local: knot.sample.conf
[ -d $(DESTDIR)/$(sysconfdir) ] || \
$(INSTALL) -d $(DESTDIR)/$(sysconfdir)
[ -f $(DESTDIR)/$(sysconfdir)/knot.sample.conf ] || \
- $(INSTALL_DATA) knot.sample.conf example.com.zone $(DESTDIR)/$(sysconfdir)
+ $(INSTALL_DATA) knot.sample.conf $(srcdir)/example.com.zone $(DESTDIR)/$(sysconfdir)
clean-local:
rm -f knot.sample.conf