c3b209ff400c1278ac7d82b1e9d8f25efc2be2b2
[tinc] / doc / Makefile.am
1 ## Process this file with automake to get Makefile.in
2
3 info_TEXINFOS = tinc.texi
4
5 dyn_MANS =
6 man_aux = $(dyn_MANS:.8=.x)
7
8 man_MANS = tincd.8 tinc.conf.5 $(dyn_MANS)
9
10 PERL = @PERL@
11 HELP2MAN = help2man
12 MAINTAINERCLEANFILES = $(dyn_MANS)
13
14 EXTRA_DIST = $(man_MANS) $(HELP2MAN) $(man_aux) \
15   Makefile.maint GNUmakefile Makefile.summ sample-config.tar.gz
16
17 # Use `ginstall' in the definition of man_MANS to avoid
18 # confusion with the `install' target.  The install rule transforms `ginstall'
19 # to install before applying any user-specified name transformations.
20 transform = s/ginstall/install/; @program_transform_name@
21
22 # For additional rules usually of interest only to the maintainer,
23 # see GNUmakefile and Makefile.maint.
24
25 tinc.pdf: tinc.texi
26         texi2pdf -o tinc.pdf tinc.texi
27
28 texi2html: tinc.texi
29         mkdir -p html
30         rm -f html/*.html
31         cd html && texi2html -split=chapter ../tinc.texi
32
33 %.html: %
34         w3mman2html $< > $@