gnunet.conf.5: gnunet.conf.5.in Makefile
$(do_subst) < $(srcdir)/gnunet.conf.5.in > gnunet.conf.5
+do_subst_pkgdatadir = $(SED) -e 's,[@]pkgdatadir[@],$(pkgdatadir),g'
+
CLEANFILES = gnunet.conf.5
if TEXI2MDOC_GENERATION
# that this is the most portable way to achieve what
# I want and that the alternatives are depressing and
# nonfunctional.
+produce_html.sh: produce_html.sh.in Makefile
+ $(do_subst_pkgdatadir) < $(srcdir)/produce_html.sh.in > produce_html.sh
+
+CLEANFILES += produce_html.sh
+
.PHONY: man-html
-man-html:
+man-html: produce_html.sh
$(SH) $(srcdir)/produce_html.sh
htmldocdir = $(datadir)/doc/gnunet/manhtml/
EXTRA_DIST = ${man_MANS} \
gnunet.conf.5.in \
+ produce_html.sh.in \
README
+++ /dev/null
-#!/bin/sh
-
-existence()
-{
- command -v "$1" >/dev/null 2>&1
-}
-
-if existence mandoc;
-then
- for f in `find . -name \*\.[1-9]`;
- do
- mandoc -T html $f > $f.html;
- done
-fi
--- /dev/null
+#!/bin/sh
+
+. @pkgdatadir@/existence.sh
+
+if existence mandoc;
+then
+ for f in `find . -name \*\.[1-9]`;
+ do
+ mandoc -T html $f > $f.html;
+ done
+fi