tinyproxy/docs/man8/Makefile.am

37 lines
813 B
Makefile
Raw Normal View History

if HAVE_MANPAGE_INTEREST
MAN8_FILES = \
2009-09-13 06:02:38 +08:00
tinyproxy.txt
endif
2009-09-13 06:02:38 +08:00
M_SECTION=8
M_NAME=TINYPROXY
2009-09-13 06:02:38 +08:00
man_MANS = \
$(MAN8_FILES:.txt=.8)
edit = sed \
-e 's|@localstatedir[@]|$(localstatedir)|g' \
-e 's|@runstatedir[@]|$(runstatedir)|g' \
-e 's|@sysconfdir[@]|$(sysconfdir)|g' \
-e 's|@TINYPROXY_STATHOST[@]|$(TINYPROXY_STATHOST)|g'
tinyproxy.txt: $(top_srcdir)/docs/man8/tinyproxy.txt.in Makefile
@rm -f $@ $@.tmp
$(AM_V_GEN) $(edit) $(top_srcdir)/docs/man8/$@.in > $@.tmp
@mv $@.tmp $@
2009-09-13 06:02:38 +08:00
.txt.8:
if HAVE_POD2MAN
$(AM_V_GEN) $(POD2MAN) --center="Tinyproxy manual" \
--section=$(M_SECTION) --name=$(M_NAME) --release="Version @VERSION@" \
$< > $@
2009-09-13 06:02:38 +08:00
else
@echo "*** pod2man is required to regenerate $(@) ***"; exit 1;
2009-09-13 06:02:38 +08:00
endif
MAINTAINERCLEANFILES = \
$(MAN8_FILES:.txt=.8)
EXTRA_DIST = \
$(MAN8_FILES:.txt=.8)