stunnel4/doc/Makefile.am

36 lines
970 B
Makefile
Raw Normal View History

2017-03-28 09:58:13 +02:00
## Process this file with automake to produce Makefile.in
2017-11-15 15:03:25 +01:00
# by Michal Trojnara 2015-2017
2017-03-28 09:58:13 +02:00
2017-11-15 15:03:25 +01:00
EXTRA_DIST = stunnel.pod.in stunnel.8.in stunnel.html.in en
EXTRA_DIST += stunnel.pl.pod.in stunnel.pl.8.in stunnel.pl.html.in pl
2017-03-28 09:58:13 +02:00
2017-11-15 15:03:25 +01:00
man_MANS = stunnel.8 stunnel.pl.8
2017-03-28 09:58:13 +02:00
docdir = $(datadir)/doc/stunnel
2017-11-15 15:03:25 +01:00
doc_DATA = stunnel.html stunnel.pl.html
2017-03-28 09:58:13 +02:00
2017-11-15 15:03:25 +01:00
CLEANFILES = $(man_MANS) $(doc_DATA)
2017-03-28 09:58:13 +02:00
2017-11-15 15:03:25 +01:00
SUFFIXES = .pod.in .8.in .html.in
2017-03-28 09:58:13 +02:00
2017-11-15 15:03:25 +01:00
.pod.in.8.in:
pod2man -u -n stunnel -s 8 -r $(VERSION) \
-c "stunnel TLS Proxy" -d `date +%Y.%m.%d` $< $@
.pod.in.html.in:
pod2html --index --backlink --header \
--title "stunnel TLS Proxy" --infile=$< --outfile=$@
2017-03-28 09:58:13 +02:00
rm -f pod2htmd.tmp pod2htmi.tmp
2017-11-15 15:03:25 +01:00
edit = sed \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@sysconfdir[@]|$(sysconfdir)|g'
$(man_MANS) $(doc_DATA): Makefile
$(edit) '$(srcdir)/$@.in' >$@
stunnel.8: $(srcdir)/stunnel.8.in
stunnel.html: $(srcdir)/stunnel.html.in
stunnel.pl.8: $(srcdir)/stunnel.pl.8.in
stunnel.pl.html: $(srcdir)/stunnel.pl.html.in