1# Id 2 3include $(top_srcdir)/Makefile.am.common 4 5AUTOMAKE_OPTIONS = no-texinfo.tex 6 7MAKEINFOFLAGS = --css-include=$(srcdir)/heimdal.css 8 9TEXI2DVI = true # ARGH, make distcheck can't be disabled to not build dvifiles 10 11info_TEXINFOS = heimdal.texi hx509.texi 12 13dxy_subst = sed -e 's,[@]srcdir[@],$(srcdir),g' \ 14 -e 's,[@]objdir[@],.,g' \ 15 -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' 16 17hcrypto.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 21 22hdb.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 26 27base.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 31 32hx509.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 36 37gssapi.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 41 42krb5.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 46 47ntlm.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 51 52wind.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 56 57texi_subst = sed -e 's,[@]dbdir[@],$(localstatedir),g' \ 58 -e 's,[@]dbtype[@],$(db_type),g' \ 59 -e 's,[@]PACKAGE_VERSION[@],$(PACKAGE_VERSION),g' 60 61vars.texi: vars.tin Makefile 62 $(texi_subst) < $(srcdir)/vars.tin > vars.texi.tmp 63 chmod +x vars.texi.tmp 64 mv vars.texi.tmp vars.texi 65 66PROJECTS = base hdb hx509 gssapi krb5 ntlm wind 67 68PROJECTS += hcrypto 69 70doxyout doxygen: base.dxy hdb.dxy hx509.dxy hcrypto.dxy gssapi.dxy krb5.dxy ntlm.dxy wind.dxy 71 @test -d $(srcdir)/doxyout && \ 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 && \ 79 find $$a/man -name '_*' -type f -print | \ 80 perl -lne unlink && \ 81 find $$a/html -name 'dir_*.html' -type f -print | \ 82 perl -lne unlink && \ 83 find $$a/man -type f > $$a/manpages ) ; \ 84 done 85 86install-data-hook: install-doxygen-manpage 87uninstall-hook: uninstall-doxygen-manpage 88dist-hook: doxygen 89 90install-doxygen-manpage: 91 for a in $(PROJECTS) ; do \ 92 f="$(srcdir)/doxyout/$$a/manpages" ; \ 93 test -f $$f || continue ; \ 94 echo "install $$a manual pages $$(wc -l < $$f)" ; \ 95 while read x ; do \ 96 section=`echo "$$x" | sed 's/.*\.\([0-9]\)/\1/'` ; \ 97 $(mkinstalldirs) "$(DESTDIR)$(mandir)/man$$section" ; \ 98 $(INSTALL_DATA) $(srcdir)/doxyout/$$x "$(DESTDIR)$(mandir)/man$$section" ; \ 99 done < $$f ; \ 100 done ; exit 0 101 102uninstall-doxygen-manpage: 103 @for a in $(PROJECTS) ; do \ 104 f="$(srcdir)/doxyout/$$a/manpages" ; \ 105 test -f $$f || continue ; \ 106 echo "removing $$a manual pages" ; \ 107 while read x ; do \ 108 section=`echo "$$x" | sed 's/.*\.\([0-9]\)/\1/'` ; \ 109 base=`basename $$x` ; \ 110 rm "$(DESTDIR)$(mandir)/man$$section/$$base" ; \ 111 done < $$f ; \ 112 done 113 114 115heimdal_TEXINFOS = \ 116 ack.texi \ 117 apps.texi \ 118 copyright.texi \ 119 heimdal.texi \ 120 install.texi \ 121 intro.texi \ 122 kerberos4.texi \ 123 migration.texi \ 124 misc.texi \ 125 programming.texi \ 126 setup.texi \ 127 vars.texi \ 128 whatis.texi \ 129 win2k.texi 130 131EXTRA_DIST = \ 132 NTMakefile \ 133 doxyout \ 134 footer.html \ 135 gssapi.din \ 136 hdb.din \ 137 hcrypto.din \ 138 header.html \ 139 heimdal.css \ 140 base.din \ 141 hx509.din \ 142 krb5.din \ 143 ntlm.din \ 144 init-creds \ 145 latin1.tex \ 146 layman.asc \ 147 doxytmpl.dxy \ 148 wind.din \ 149 base.hhp \ 150 heimdal.hhp \ 151 hx509.hhp \ 152 vars.tin 153 154CLEANFILES = \ 155 hcrypto.dxy* \ 156 base.dxy* \ 157 hx509.dxy* \ 158 hdb.dxy* \ 159 gssapi.dxy* \ 160 krb5.dxy* \ 161 ntlm.dxy* \ 162 wind.dxy* \ 163 vars.texi* 164