support output passphrases for copy certificate
[heimdal.git] / doc / Makefile.am
blobbdecf41b4d9af373bfafe6556277387078cf8561
1 # $Id$
3 include $(top_srcdir)/Makefile.am.common
5 AUTOMAKE_OPTIONS = no-texinfo.tex
7 MAKEINFOFLAGS = --css-include=$(srcdir)/heimdal.css
9 TEXI2DVI = true # ARGH, make distcheck can't be disabled to not build dvifiles
11 info_TEXINFOS = heimdal.texi hx509.texi
13 dxy_subst = sed -e 's,[@]srcdir[@],$(srcdir),g' \
14         -e 's,[@]objdir[@],.,g' \
15         -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g'
17 hcrypto.dxy: hcrypto.din Makefile
18         $(dxy_subst) < $(srcdir)/hcrypto.din > hcrypto.dxy.tmp
19         chmod +x hcrypto.dxy.tmp
20         mv hcrypto.dxy.tmp hcrypto.dxy
22 hdb.dxy: hdb.din Makefile
23         $(dxy_subst) < $(srcdir)/hdb.din > hdb.dxy.tmp
24         chmod +x hdb.dxy.tmp
25         mv hdb.dxy.tmp hdb.dxy
27 hx509.dxy: hx509.din Makefile
28         $(dxy_subst) < $(srcdir)/hx509.din > hx509.dxy.tmp
29         chmod +x hx509.dxy.tmp
30         mv hx509.dxy.tmp hx509.dxy
32 gssapi.dxy: gssapi.din Makefile
33         $(dxy_subst) < $(srcdir)/gssapi.din > gssapi.dxy.tmp
34         chmod +x gssapi.dxy.tmp
35         mv gssapi.dxy.tmp gssapi.dxy
37 krb5.dxy: krb5.din Makefile
38         $(dxy_subst) < $(srcdir)/krb5.din > krb5.dxy.tmp
39         chmod +x krb5.dxy.tmp
40         mv krb5.dxy.tmp krb5.dxy
42 ntlm.dxy: ntlm.din Makefile
43         $(dxy_subst) < $(srcdir)/ntlm.din > ntlm.dxy.tmp
44         chmod +x ntlm.dxy.tmp
45         mv ntlm.dxy.tmp ntlm.dxy
47 wind.dxy: wind.din Makefile
48         $(dxy_subst) < $(srcdir)/wind.din > wind.dxy.tmp
49         chmod +x wind.dxy.tmp
50         mv wind.dxy.tmp wind.dxy
52 texi_subst = sed -e 's,[@]dbdir[@],$(localstatedir),g' \
53         -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g'
55 vars.texi: vars.tin Makefile
56         $(texi_subst) < $(srcdir)/vars.tin > vars.texi.tmp
57         chmod +x vars.texi.tmp
58         mv vars.texi.tmp vars.texi
60 PROJECTS = hcrypto hdb hx509 gssapi krb5 ntlm wind 
62 $(PROJECTS): doxygen
64 doxygen: hdb.dxy hx509.dxy hcrypto.dxy gssapi.dxy krb5.dxy ntlm.dxy wind.dxy
65         @find $(srcdir)/doxyout -type d ! -perm -200 -exec chmod u+w {} ';' ; \
66         rm -rf $(srcdir)/doxyout ; \
67         mkdir $(srcdir)/doxyout ; \
68         for a in $(PROJECTS) ; do \
69                 echo $$a ; \
70                 doxygen $$a.dxy; \
71                 (cd $(srcdir)/doxyout && find $$a/man -type f > $$a/manpages ) ; \
72         done
74 install-data-hook: install-doxygen-manpage
75 uninstall-hook: uninstall-doxygen-manpage
76 dist-hook: doxygen
78 install-doxygen-manpage:
79         for a in $(PROJECTS) ; do \
80                 f="$(srcdir)/doyxgen/$$a/manpages" ; \
81                 test -f $$f || continue ; \
82                 echo "install $$a manual pages" ; \
83                 while read x ; do \
84                         section=`echo "$$x" | sed 's/.*\.\([0-9]\)/\1/'` ; \
85                         $(mkinstalldirs) "$(DESTDIR)$(mandir)/man$$section" ; \
86                         $(INSTALL_DATA) $(srcdir)/doxyout/$$x "$(DESTDIR)$(mandir)/man$$section" ; \
87                 done < $$f ; \
88         done ; exit 0
90 uninstall-doxygen-manpage:
91         @for a in $(PROJECTS) ; do \
92                 f="$(srcdir)/doxyout/$$a/manpages" ; \
93                 test -f $$f || continue ; \
94                 echo "removing $$a manual pages" ; \
95                 while read x ; do \
96                         section=`echo "$$x" | sed 's/.*\.\([0-9]\)/\1/'` ; \
97                         base=`basename $$x` ; \
98                         rm "$(DESTDIR)$(mandir)/man$$section/$$base" ; \
99                 done < $$f ; \
100         done
103 heimdal_TEXINFOS = \
104         ack.texi \
105         apps.texi \
106         copyright.texi \
107         heimdal.texi \
108         install.texi \
109         intro.texi \
110         kerberos4.texi \
111         migration.texi \
112         misc.texi \
113         programming.texi \
114         setup.texi \
115         vars.texi \
116         whatis.texi \
117         win2k.texi
119 EXTRA_DIST = \
120         $(PROJECTS) \
121         footer.html \
122         gssapi.din \
123         hdb.din \
124         hcrypto.din \
125         header.html \
126         heimdal.css \
127         hx509.din \
128         krb5.din \
129         ntlm.din \
130         init-creds \
131         latin1.tex \
132         layman.asc \
133         doxytmpl.dxy \
134         wind.din \
135         vars.tin
137 CLEANFILES = \
138         hcrypto.dxy* \
139         hx509.dxy* \
140         hdb.dxy* \
141         gssapi.dxy* \
142         krb5.dxy* \
143         ntlm.dxy* \
144         wind.dxy* \
145         vars.texi*