Add version_git.h and sample-config.tar.gz to CLEANFILES.
[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 tinc.8 tinc.conf.5 tinc-gui.8
6
7 EXTRA_DIST = tincinclude.texi.in tincd.8.in tinc.8.in tinc.conf.5.in tinc-gui.8.in sample-config.tar.gz
8
9 CLEANFILES = *.html tincd.8 tinc.8 tinc.conf.5 tinc-gui.8 tincinclude.texi sample-config.tar.gz
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         $(AM_V_GEN)GZIP=$(GZIP_ENV) $(AMTAR) chozf $@ --exclude .svn $<
21
22 tincd.8.html: tincd.8
23         $(AM_V_GEN)w3mman2html $? > $@
24
25 tinc.8.html: tinc.8
26         $(AM_V_GEN)w3mman2html $? > $@
27
28 tinc-gui.8.html: tinc-gui.8
29         $(AM_V_GEN)w3mman2html $? > $@
30
31 tinc.conf.5.html: tinc.conf.5
32         $(AM_V_GEN)w3mman2html $? > $@
33
34 substitute = sed \
35         -e s,'@PACKAGE\@',"$(PACKAGE)",g \
36         -e s,'@VERSION\@',"$(VERSION)",g \
37         -e s,'@sysconfdir\@',"$(sysconfdir)",g \
38         -e s,'@localstatedir\@',"$(localstatedir)",g
39
40 tincd.8: tincd.8.in
41         $(AM_V_GEN)$(substitute) $? > $@
42
43 tinc.8: tinc.8.in
44         $(AM_V_GEN)$(substitute) $? > $@
45
46 tinc-gui.8: tinc-gui.8.in
47         $(AM_V_GEN)$(substitute) $? > $@
48
49 tinc.conf.5: tinc.conf.5.in
50         $(AM_V_GEN)$(substitute) $? > $@
51
52 tincinclude.texi: tincinclude.texi.in
53         $(AM_V_GEN)$(substitute) $? > $@
54         
55 tinc.texi: tincinclude.texi