Merge branch 'master' of git://tinc-vpn.org/tinc into 1.1
[tinc] / doc / Makefile.am
1 ## Process this file with automake to get Makefile.in
2
3 info_TEXINFOS = tinc.texi
4
5 man_MANS = tincd.8 tincctl.8 tinc.conf.5 tinc-gui.8
6
7 EXTRA_DIST = tincinclude.texi.in tincd.8.in tincctl.8.in tinc.conf.5.in tinc-gui.8.in sample-config.tar.gz
8
9 CLEANFILES = *.html tinc.info tincd.8 tincctl.8 tinc.conf.5 tinc-gui.8 tincinclude.texi
10
11 # Use `ginstall' in the definition of man_MANS to avoid
12 # confusion with the `install' target.  The install rule transforms `ginstall'
13 # to install before applying any user-specified name transformations.
14 transform = s/ginstall/install/; @program_transform_name@
15
16 # For additional rules usually of interest only to the maintainer,
17 # see GNUmakefile and Makefile.maint.
18
19 sample-config.tar.gz: sample-config
20         GZIP=$(GZIP_ENV) $(AMTAR) chozf sample-config.tar.gz --exclude .svn sample-config
21
22 texi2html: tinc.texi
23         texi2html -split=chapter tinc.texi
24
25 tincd.8.html: tincd.8
26         w3mman2html $< > $@
27
28 tincctl.8.html: tincctl.8
29         w3mman2html $< > $@
30
31 tinc-gui.8.html: tinc-gui.8
32         w3mman2html $< > $@
33
34 tinc.conf.5.html: tinc.conf.5
35         w3mman2html $< > $@
36
37 substitute = sed \
38         -e s,'@PACKAGE\@',"$(PACKAGE)",g \
39         -e s,'@VERSION\@',"$(VERSION)",g \
40         -e s,'@sysconfdir\@',"$(sysconfdir)",g \
41         -e s,'@localstatedir\@',"$(localstatedir)",g
42
43 tincd.8: tincd.8.in
44         $(substitute) $< > $@
45
46 tincctl.8: tincctl.8.in
47         $(substitute) $< > $@
48
49 tinc-gui.8: tinc-gui.8.in
50         $(substitute) $< > $@
51
52 tinc.conf.5: tinc.conf.5.in
53         $(substitute) $< > $@
54
55 tincinclude.texi: tincinclude.texi.in
56         $(substitute) $< > $@
57         
58 tinc.texi: tincinclude.texi