1*ae771770SStanislav Sedov# $Id$ 2b528cefcSMark Murray 3b528cefcSMark Murrayinclude $(top_srcdir)/Makefile.am.common 4b528cefcSMark Murray 51c43270aSJacques VidrineAUTOMAKE_OPTIONS = no-texinfo.tex 6b528cefcSMark Murray 7*ae771770SStanislav SedovMAKEINFOFLAGS = --css-include=$(srcdir)/heimdal.css 8c19800e8SDoug Rabson 9c19800e8SDoug RabsonTEXI2DVI = true # ARGH, make distcheck can't be disabled to not build dvifiles 10c19800e8SDoug Rabson 11c19800e8SDoug Rabsoninfo_TEXINFOS = heimdal.texi hx509.texi 12c19800e8SDoug Rabson 13c19800e8SDoug Rabsondxy_subst = sed -e 's,[@]srcdir[@],$(srcdir),g' \ 14c19800e8SDoug Rabson -e 's,[@]objdir[@],.,g' \ 15c19800e8SDoug Rabson -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' 16c19800e8SDoug Rabson 17*ae771770SStanislav Sedovhcrypto.dxy: hcrypto.din Makefile 18*ae771770SStanislav Sedov $(dxy_subst) < $(srcdir)/hcrypto.din > hcrypto.dxy.tmp 19*ae771770SStanislav Sedov chmod +x hcrypto.dxy.tmp 20*ae771770SStanislav Sedov mv hcrypto.dxy.tmp hcrypto.dxy 21*ae771770SStanislav Sedov 22*ae771770SStanislav Sedovhdb.dxy: hdb.din Makefile 23*ae771770SStanislav Sedov $(dxy_subst) < $(srcdir)/hdb.din > hdb.dxy.tmp 24*ae771770SStanislav Sedov chmod +x hdb.dxy.tmp 25*ae771770SStanislav Sedov mv hdb.dxy.tmp hdb.dxy 26*ae771770SStanislav Sedov 27*ae771770SStanislav Sedovhx509.dxy: hx509.din Makefile 28*ae771770SStanislav Sedov $(dxy_subst) < $(srcdir)/hx509.din > hx509.dxy.tmp 29*ae771770SStanislav Sedov chmod +x hx509.dxy.tmp 30*ae771770SStanislav Sedov mv hx509.dxy.tmp hx509.dxy 31*ae771770SStanislav Sedov 32*ae771770SStanislav Sedovgssapi.dxy: gssapi.din Makefile 33*ae771770SStanislav Sedov $(dxy_subst) < $(srcdir)/gssapi.din > gssapi.dxy.tmp 34*ae771770SStanislav Sedov chmod +x gssapi.dxy.tmp 35*ae771770SStanislav Sedov mv gssapi.dxy.tmp gssapi.dxy 36*ae771770SStanislav Sedov 37c19800e8SDoug Rabsonkrb5.dxy: krb5.din Makefile 38c19800e8SDoug Rabson $(dxy_subst) < $(srcdir)/krb5.din > krb5.dxy.tmp 39c19800e8SDoug Rabson chmod +x krb5.dxy.tmp 40c19800e8SDoug Rabson mv krb5.dxy.tmp krb5.dxy 41c19800e8SDoug Rabson 42c19800e8SDoug Rabsonntlm.dxy: ntlm.din Makefile 43c19800e8SDoug Rabson $(dxy_subst) < $(srcdir)/ntlm.din > ntlm.dxy.tmp 44c19800e8SDoug Rabson chmod +x ntlm.dxy.tmp 45c19800e8SDoug Rabson mv ntlm.dxy.tmp ntlm.dxy 46c19800e8SDoug Rabson 47*ae771770SStanislav Sedovwind.dxy: wind.din Makefile 48*ae771770SStanislav Sedov $(dxy_subst) < $(srcdir)/wind.din > wind.dxy.tmp 49*ae771770SStanislav Sedov chmod +x wind.dxy.tmp 50*ae771770SStanislav Sedov mv wind.dxy.tmp wind.dxy 51c19800e8SDoug Rabson 52c19800e8SDoug Rabsontexi_subst = sed -e 's,[@]dbdir[@],$(localstatedir),g' \ 53c19800e8SDoug Rabson -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' 54c19800e8SDoug Rabson 55c19800e8SDoug Rabsonvars.texi: vars.tin Makefile 56c19800e8SDoug Rabson $(texi_subst) < $(srcdir)/vars.tin > vars.texi.tmp 57c19800e8SDoug Rabson chmod +x vars.texi.tmp 58c19800e8SDoug Rabson mv vars.texi.tmp vars.texi 59c19800e8SDoug Rabson 60*ae771770SStanislav SedovPROJECTS = hcrypto hdb hx509 gssapi krb5 ntlm wind 61*ae771770SStanislav Sedov 62*ae771770SStanislav Sedovdoxyout doxygen: hdb.dxy hx509.dxy hcrypto.dxy gssapi.dxy krb5.dxy ntlm.dxy wind.dxy 63*ae771770SStanislav Sedov @find $(srcdir)/doxyout -type d ! -perm -200 -exec chmod u+w {} ';' ; \ 64*ae771770SStanislav Sedov rm -rf $(srcdir)/doxyout ; \ 65*ae771770SStanislav Sedov mkdir $(srcdir)/doxyout ; \ 66*ae771770SStanislav Sedov for a in $(PROJECTS) ; do \ 67*ae771770SStanislav Sedov echo $$a ; \ 68*ae771770SStanislav Sedov doxygen $$a.dxy; \ 69*ae771770SStanislav Sedov (cd $(srcdir)/doxyout && find $$a/man -type f > $$a/manpages ) ; \ 70*ae771770SStanislav Sedov done 71*ae771770SStanislav Sedov 72*ae771770SStanislav Sedovinstall-data-hook: install-doxygen-manpage 73*ae771770SStanislav Sedovuninstall-hook: uninstall-doxygen-manpage 74*ae771770SStanislav Sedovdist-hook: doxygen 75*ae771770SStanislav Sedov 76*ae771770SStanislav Sedovinstall-doxygen-manpage: 77*ae771770SStanislav Sedov for a in $(PROJECTS) ; do \ 78*ae771770SStanislav Sedov f="$(srcdir)/doxyout/$$a/manpages" ; \ 79*ae771770SStanislav Sedov test -f $$f || continue ; \ 80*ae771770SStanislav Sedov echo "install $$a manual pages $$(wc -l < $$f)" ; \ 81*ae771770SStanislav Sedov while read x ; do \ 82*ae771770SStanislav Sedov section=`echo "$$x" | sed 's/.*\.\([0-9]\)/\1/'` ; \ 83*ae771770SStanislav Sedov $(mkinstalldirs) "$(DESTDIR)$(mandir)/man$$section" ; \ 84*ae771770SStanislav Sedov $(INSTALL_DATA) $(srcdir)/doxyout/$$x "$(DESTDIR)$(mandir)/man$$section" ; \ 85*ae771770SStanislav Sedov done < $$f ; \ 86*ae771770SStanislav Sedov done ; exit 0 87*ae771770SStanislav Sedov 88*ae771770SStanislav Sedovuninstall-doxygen-manpage: 89*ae771770SStanislav Sedov @for a in $(PROJECTS) ; do \ 90*ae771770SStanislav Sedov f="$(srcdir)/doxyout/$$a/manpages" ; \ 91*ae771770SStanislav Sedov test -f $$f || continue ; \ 92*ae771770SStanislav Sedov echo "removing $$a manual pages" ; \ 93*ae771770SStanislav Sedov while read x ; do \ 94*ae771770SStanislav Sedov section=`echo "$$x" | sed 's/.*\.\([0-9]\)/\1/'` ; \ 95*ae771770SStanislav Sedov base=`basename $$x` ; \ 96*ae771770SStanislav Sedov rm "$(DESTDIR)$(mandir)/man$$section/$$base" ; \ 97*ae771770SStanislav Sedov done < $$f ; \ 98*ae771770SStanislav Sedov done 99*ae771770SStanislav Sedov 100c19800e8SDoug Rabson 101c19800e8SDoug Rabsonheimdal_TEXINFOS = \ 102c19800e8SDoug Rabson ack.texi \ 103c19800e8SDoug Rabson apps.texi \ 104*ae771770SStanislav Sedov copyright.texi \ 105c19800e8SDoug Rabson heimdal.texi \ 106c19800e8SDoug Rabson install.texi \ 107c19800e8SDoug Rabson intro.texi \ 108c19800e8SDoug Rabson kerberos4.texi \ 109c19800e8SDoug Rabson migration.texi \ 110c19800e8SDoug Rabson misc.texi \ 111c19800e8SDoug Rabson programming.texi \ 112c19800e8SDoug Rabson setup.texi \ 113c19800e8SDoug Rabson vars.texi \ 114c19800e8SDoug Rabson whatis.texi \ 115c19800e8SDoug Rabson win2k.texi 116c19800e8SDoug Rabson 117c19800e8SDoug RabsonEXTRA_DIST = \ 118*ae771770SStanislav Sedov NTMakefile \ 119*ae771770SStanislav Sedov doxyout \ 120*ae771770SStanislav Sedov footer.html \ 121*ae771770SStanislav Sedov gssapi.din \ 122*ae771770SStanislav Sedov hdb.din \ 123*ae771770SStanislav Sedov hcrypto.din \ 124*ae771770SStanislav Sedov header.html \ 125*ae771770SStanislav Sedov heimdal.css \ 126*ae771770SStanislav Sedov hx509.din \ 127c19800e8SDoug Rabson krb5.din \ 128c19800e8SDoug Rabson ntlm.din \ 129c19800e8SDoug Rabson init-creds \ 130c19800e8SDoug Rabson latin1.tex \ 131c19800e8SDoug Rabson layman.asc \ 132c19800e8SDoug Rabson doxytmpl.dxy \ 133*ae771770SStanislav Sedov wind.din \ 134c19800e8SDoug Rabson vars.tin 135c19800e8SDoug Rabson 136c19800e8SDoug RabsonCLEANFILES = \ 137*ae771770SStanislav Sedov hcrypto.dxy* \ 138*ae771770SStanislav Sedov hx509.dxy* \ 139*ae771770SStanislav Sedov hdb.dxy* \ 140*ae771770SStanislav Sedov gssapi.dxy* \ 141c19800e8SDoug Rabson krb5.dxy* \ 142c19800e8SDoug Rabson ntlm.dxy* \ 143*ae771770SStanislav Sedov wind.dxy* \ 144c19800e8SDoug Rabson vars.texi* 145