lib/asn1: Add extern to declaration of fuzzer string in gen_locl.h
[heimdal.git] / doc / Makefile.am
blobab8eca4f1e50b48033510c0ce77e71d875007a29
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 base.dxy: base.din Makefile
28         $(dxy_subst) < $(srcdir)/base.din > base.dxy.tmp
29         chmod +x base.dxy.tmp
30         mv base.dxy.tmp base.dxy
32 hx509.dxy: hx509.din Makefile
33         $(dxy_subst) < $(srcdir)/hx509.din > hx509.dxy.tmp
34         chmod +x hx509.dxy.tmp
35         mv hx509.dxy.tmp hx509.dxy
37 gssapi.dxy: gssapi.din Makefile
38         $(dxy_subst) < $(srcdir)/gssapi.din > gssapi.dxy.tmp
39         chmod +x gssapi.dxy.tmp
40         mv gssapi.dxy.tmp gssapi.dxy
42 krb5.dxy: krb5.din Makefile
43         $(dxy_subst) < $(srcdir)/krb5.din > krb5.dxy.tmp
44         chmod +x krb5.dxy.tmp
45         mv krb5.dxy.tmp krb5.dxy
47 ntlm.dxy: ntlm.din Makefile
48         $(dxy_subst) < $(srcdir)/ntlm.din > ntlm.dxy.tmp
49         chmod +x ntlm.dxy.tmp
50         mv ntlm.dxy.tmp ntlm.dxy
52 wind.dxy: wind.din Makefile
53         $(dxy_subst) < $(srcdir)/wind.din > wind.dxy.tmp
54         chmod +x wind.dxy.tmp
55         mv wind.dxy.tmp wind.dxy
57 texi_subst = sed -e 's,[@]dbdir[@],$(localstatedir),g' \
58         -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g'
60 vars.texi: vars.tin Makefile
61         $(texi_subst) < $(srcdir)/vars.tin > vars.texi.tmp
62         chmod +x vars.texi.tmp
63         mv vars.texi.tmp vars.texi
65 PROJECTS = base hdb hx509 gssapi krb5 ntlm wind 
67 if !HAVE_OPENSSL
68 PROJECTS += hcrypto
69 endif
71 doxyout doxygen: base.dxy hdb.dxy hx509.dxy hcrypto.dxy gssapi.dxy krb5.dxy ntlm.dxy wind.dxy
72         @find $(srcdir)/doxyout -type d ! -perm -200 -exec chmod u+w {} ';' ; \
73         rm -rf $(srcdir)/doxyout ; \
74         mkdir $(srcdir)/doxyout ; \
75         for a in $(PROJECTS) ; do \
76                 echo $$a ; \
77                 doxygen $$a.dxy; \
78                 (cd $(srcdir)/doxyout && find $$a/man -type f > $$a/manpages ) ; \
79         done
81 install-data-hook: install-doxygen-manpage
82 uninstall-hook: uninstall-doxygen-manpage
83 dist-hook: doxygen
85 install-doxygen-manpage:
86         for a in $(PROJECTS) ; do \
87                 f="$(srcdir)/doxyout/$$a/manpages" ; \
88                 test -f $$f || continue ; \
89                 echo "install $$a manual pages $$(wc -l < $$f)" ; \
90                 while read x ; do \
91                         section=`echo "$$x" | sed 's/.*\.\([0-9]\)/\1/'` ; \
92                         $(mkinstalldirs) "$(DESTDIR)$(mandir)/man$$section" ; \
93                         $(INSTALL_DATA) $(srcdir)/doxyout/$$x "$(DESTDIR)$(mandir)/man$$section" ; \
94                 done < $$f ; \
95         done ; exit 0
97 uninstall-doxygen-manpage:
98         @for a in $(PROJECTS) ; do \
99                 f="$(srcdir)/doxyout/$$a/manpages" ; \
100                 test -f $$f || continue ; \
101                 echo "removing $$a manual pages" ; \
102                 while read x ; do \
103                         section=`echo "$$x" | sed 's/.*\.\([0-9]\)/\1/'` ; \
104                         base=`basename $$x` ; \
105                         rm "$(DESTDIR)$(mandir)/man$$section/$$base" ; \
106                 done < $$f ; \
107         done
110 heimdal_TEXINFOS = \
111         ack.texi \
112         apps.texi \
113         copyright.texi \
114         heimdal.texi \
115         install.texi \
116         intro.texi \
117         kerberos4.texi \
118         migration.texi \
119         misc.texi \
120         programming.texi \
121         setup.texi \
122         vars.texi \
123         whatis.texi \
124         win2k.texi
126 EXTRA_DIST = \
127         NTMakefile \
128         doxyout \
129         footer.html \
130         gssapi.din \
131         hdb.din \
132         hcrypto.din \
133         header.html \
134         heimdal.css \
135         base.din \
136         hx509.din \
137         krb5.din \
138         ntlm.din \
139         init-creds \
140         latin1.tex \
141         layman.asc \
142         doxytmpl.dxy \
143         wind.din \
144         vars.tin
146 CLEANFILES = \
147         hcrypto.dxy* \
148         base.dxy* \
149         hx509.dxy* \
150         hdb.dxy* \
151         gssapi.dxy* \
152         krb5.dxy* \
153         ntlm.dxy* \
154         wind.dxy* \
155         vars.texi*