summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/Makefile.am18
1 files changed, 15 insertions, 3 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 3be7b84..b046cb6 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -1,11 +1,23 @@
# HTML Variable Substitution Files
HTML_VAR_SUBST = HTML_VARIABLES debug.html default.html stats.html
+man_MANS = tinyproxy.8
-EXTRA_DIST = tinyproxy.8 tinyproxy.conf \
+EXTRA_DIST = $(man_MANS) tinyproxy.conf \
HTTP_ERROR_CODES RFC_INFO \
releases.txt \
filter-howto.txt \
- report.sh \
+ report.sh.tmpl \
$(HTML_VAR_SUBST)
-man_MANS = tinyproxy.8
+install-exec-local: report.sh
+
+# Build the report.sh script
+report.sh: $(srcdir)/report.sh.tmpl
+ sed -e "s,@TINYPROXY_LOCATION@,$(DESTDIR)$(sbindir)," < $(srcdir)/report.sh.tmpl > $(top_builddir)/doc/report.sh
+ chmod 755 $(top_builddir)/doc/report.sh
+ @echo ""
+ @echo "Report tinyproxy"
+ @echo "----------------"
+ @echo "Run the $(top_builddir)/doc/report.sh script to report a"
+ @echo "successful installation to the authors."
+ @echo "" \ No newline at end of file