AUTOMAKE_OPTIONS = 1.4 foreign AUTOTOOL_VERSION=autoconf-2.52 automake-1.5 libtool-1.4.2 doc_FILES = README.MSVC6 README.SDL COPYING.MPL COPYING.LIB COPYING.ZLIB \ zziplib.html htm_FILES = zzip-index.htm zzip-zip.htm zzip-file.htm zzip-sdl-rwops.htm \ zzip-extio.htm zzip-xor.htm zzip-crypt.htm zzip-cryptoid.htm \ zzip-api.htm zzip-basics.htm zzip-extras.htm zzip-parse.htm \ 64on32.htm future.htm fseeko.htm mmapped.htm memdisk.htm \ configs.htm sfx-make.htm developer.htm download.htm \ history.htm referentials.htm faq.htm copying.htm SDL = @top_srcdir@/SDL SDL_RWOPS = $(SDL)/SDL_rwops_zzcat.c \ $(SDL)/SDL_rwops_zzip.c $(SDL)/SDL_rwops_zzip.h changelog = @top_srcdir@/ChangeLog EXTRA_DIST = make-doc.py $(doc_FILES) $(htm_FILES) $(SDL_RWOPS) \ make-doc.pl make-dbk.pl mksite.sh mksite.pl body.htm \ manpages.ar zziplib-master.dbk CLEANFILES = *.pc *.omf DISTCLEANFILES = zziplib.spec manpages.ar htmpages.ar *.html *.xml html_FILES = $(htm_FILES:.htm=.html) \ $(htm_FILES:.htm=.print.html) \ site.html site.print.html default : doc clean-doc clean-docs : clean-unpack - rm $(DISTCLEANFILES) - rm $(MAINTAINERCLEANFILES) # ------------------------------------------------------------------- zziplib.spec : @top_srcdir@/$(PACKAGE).spec @ $(LN_S) $? $@ # the two zzip-doc.* will grep thru zziplib.spec doc : $(doc_FILES) site.html docs : doc manpages.ar htmpages.ar docu : docs zziplib0.html : zziplib0.xml zziplib0.xml : zziplib.spec @srcdir@/Makefile.am @srcdir@/make-doc.pl \ $(srcdir)/make-doc.pl @top_srcdir@/zzip/*.c - @PERL@ $(srcdir)/make-doc.pl @top_srcdir@/zzip/*.c \ "suffix=0" "package=$(PACKAGE)" "version=$(VERSION)" \ "mainheader=zzip/zzip.h" "exported= // or " \ "docbookfile=$@" - test -s $@ zziplib1.html : zziplib1.xml zziplib1.xml : zziplib.spec @srcdir@/Makefile.am @srcdir@/make-doc.py \ $(srcdir)/make-doc.py @top_srcdir@/zzip/*.c - @PYTHON@ $(srcdir)/make-doc.py @top_srcdir@/zzip/*.c suffix=1 - test -f zziplib1.docbook && mv zziplib1.docbook $@ ; test -s $@ zziplib.html : zziplib1.html zziplib0.html - test -s zziplib0.html && cp zziplib0.html zziplib.html - test -s zziplib1.html && cp zziplib1.html zziplib.html test -s $@ zziplib.xml : zziplib1.xml zziplib0.xml - test -s zziplib0.xml && cp zziplib0.xml zziplib.xml - test -s zziplib1.xml && cp zziplib1.xml zziplib.xml test -s $@ || rm $@ omfdir=${datadir}/omf pkgomfdir=${omfdir}/${PACKAGE} SFNETDIR=/groups/z/zz/zziplib/htdocs SFNETDOC=${datadir}${SFNETDIR} pkgdocdir=${datadir}${SFNETDIR} bins = @top_srcdir@/bins DOCEXAMPLES = $(bins)/zzdir.c $(bins)/zzcat.c \ $(bins)/zzobfuscated.c $(bins)/zziptest.c \ $(bins)/zzxordir.c $(bins)/zzxorcat.c \ $(bins)/zzxorcopy.c $(SDL_RWOPS) install-docu: $(doc_FILES) $(man_FILES) site.html $(PACKAGE)-doc.omf $(mkinstalldirs) $(DESTDIR)$(pkgdocdir) for i in $(html_FILES) ; do cat $$i \ | sed -e 's:--START-->:-- :' -e 's:/$(VERSION)/" \ | sed -e "s//$$D/" \ | sed -e "s:: - $$title:" \ | sed -e "/$@.>/s:\\([^<>]*\\):\\1:" \ > $@ @ echo $< '>>' $@; cat $< | sed -e "s//$(VERSION)/" \ -e "s:\\(.*\\):\\1:" \ -e 's:

:

:' \ -e 's:

:
:' \ -e 's:

:

:g' \ -e 's:

:

:g' \ -e 's,,,' \ -e 's,,$(borderhead),' >>$@ @ if grep '' $@ >/dev/null ; then : \ ; echo "$(bordertail)" >>$@ ; fi @ D=`grep ',,'` \ ; if test ".$$D" != "." ; then echo '$(datehead)' >>$@ \ ; echo "$$D" >> $@ ; echo "$(datetail)" >> $@ ; fi @ echo "
" >>$@ # ----------------------------------------------- create pdf via docbook xml zzip.xml : $(htm_FILES) zziplib.xml make-dbk.pl @PERL@ make-dbk.pl $(htm_FILES) zziplib.xml >$@ test -s "$@" || rm "$@" zzip.html : zzip.xml xmlto html-nochunks zzip.xml zzip.pdf : zzip.xml xmlto pdf zzip.xml zziplib.pdf : $(htm_FILES) $(srcdir)/zziplib-master.dbk mksite.pl cp $(srcdir)/zziplib-master.dbk zziplib.docbook xmlto pdf zziplib.docbook ; rm zziplib.docbook test -s zziplib.pdf pdf : zziplib.pdf