summaryrefslogtreecommitdiff
path: root/etc/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'etc/Makefile.am')
-rw-r--r--etc/Makefile.am15
1 files changed, 15 insertions, 0 deletions
diff --git a/etc/Makefile.am b/etc/Makefile.am
index 5e8b370..9282d1b 100644
--- a/etc/Makefile.am
+++ b/etc/Makefile.am
@@ -3,3 +3,18 @@ sysconf_DATA = \
EXTRA_DIST = \
$(sysconf_DATA)
+
+edit = sed \
+ -e 's|@bindir[@]|$(bindir)|g' \
+ -e 's|@datadir[@]|$(datadir)|g' \
+ -e 's|@datarootdir[@]|$(datarootdir)|g' \
+ -e 's|@sysconfdir[@]|$(sysconfdir)|g' \
+ -e 's|@localstatedir[@]|$(localstatedir)|g' \
+ -e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
+ -e 's|@prefix[@]|$(prefix)|g'
+
+tinyproxy.conf: tinyproxy.conf.in
+ rm -f $@ $@.tmp
+ $(edit) $@.in >$@.tmp
+ mv $@.tmp $@
+