Fix make distcheck with tinyproxy.conf.in
(Fixes make install and out of tree builds) Thanks to muks for the top_srcdir bit!
This commit is contained in:
parent
7b8171fe01
commit
582a8dc624
@ -2,7 +2,7 @@ sysconf_DATA = \
|
|||||||
tinyproxy.conf
|
tinyproxy.conf
|
||||||
|
|
||||||
EXTRA_DIST = \
|
EXTRA_DIST = \
|
||||||
$(sysconf_DATA)
|
tinyproxy.conf.in
|
||||||
|
|
||||||
edit = sed \
|
edit = sed \
|
||||||
-e 's|@bindir[@]|$(bindir)|g' \
|
-e 's|@bindir[@]|$(bindir)|g' \
|
||||||
@ -13,8 +13,8 @@ edit = sed \
|
|||||||
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
|
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
|
||||||
-e 's|@prefix[@]|$(prefix)|g'
|
-e 's|@prefix[@]|$(prefix)|g'
|
||||||
|
|
||||||
tinyproxy.conf: tinyproxy.conf.in
|
tinyproxy.conf: $(top_srcdir)/etc/tinyproxy.conf.in Makefile
|
||||||
rm -f $@ $@.tmp
|
rm -f $@ $@.tmp
|
||||||
$(edit) $@.in >$@.tmp
|
$(edit) $(top_srcdir)/etc/$@.in > $@.tmp
|
||||||
mv $@.tmp $@
|
mv $@.tmp $@
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user