1 # Makefile.in generated by automake 1.11 from Makefile.am.
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
7 # This Makefile.in is free software; the Free Software Foundation
8 # gives unlimited permission to copy and/or distribute it,
9 # with or without modifications, as long as this notice is preserved.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
13 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
18 pkgdatadir = $(datadir)/@PACKAGE@
19 pkgincludedir = $(includedir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkglibexecdir = $(libexecdir)/@PACKAGE@
22 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
23 install_sh_DATA = $(install_sh) -c -m 644
24 install_sh_PROGRAM = $(install_sh) -c
25 install_sh_SCRIPT = $(install_sh) -c
26 INSTALL_HEADER = $(INSTALL_DATA)
27 transform = $(program_transform_name)
34 build_triplet = @build@
36 target_triplet = @target@
38 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in COPYING.LIB
39 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
40 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_compile_check_sizeof.m4 \
41 $(top_srcdir)/m4/ac_set_default_paths_system.m4 \
42 $(top_srcdir)/m4/ac_sys_largefile_sensitive.m4 \
43 $(top_srcdir)/m4/acx_restrict.m4 \
44 $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
45 $(top_srcdir)/m4/ax_cflags_no_writable_strings.m4 \
46 $(top_srcdir)/m4/ax_cflags_strict_prototypes.m4 \
47 $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
48 $(top_srcdir)/m4/ax_check_aligned_access_required.m4 \
49 $(top_srcdir)/m4/ax_configure_args.m4 \
50 $(top_srcdir)/m4/ax_create_pkgconfig_info.m4 \
51 $(top_srcdir)/m4/ax_enable_builddir_uname.m4 \
52 $(top_srcdir)/m4/ax_expand_prefix.m4 \
53 $(top_srcdir)/m4/ax_maintainer_mode_auto_silent.m4 \
54 $(top_srcdir)/m4/ax_not_enable_frame_pointer.m4 \
55 $(top_srcdir)/m4/ax_pax_tar.m4 \
56 $(top_srcdir)/m4/ax_prefix_config_h.m4 \
57 $(top_srcdir)/m4/ax_set_version_info.m4 \
58 $(top_srcdir)/m4/ax_spec_file.m4 \
59 $(top_srcdir)/m4/ax_spec_package_version.m4 \
60 $(top_srcdir)/m4/ax_warning_default_aclocaldir.m4 \
61 $(top_srcdir)/m4/ax_warning_default_pkgconfig.m4 \
62 $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/ltoptions.m4 \
63 $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
64 $(top_srcdir)/m4/lt~obsolete.m4 \
65 $(top_srcdir)/m4/patch_libtool_on_darwin_zsh_overquoting.m4 \
66 $(top_srcdir)/m4/patch_libtool_sys_lib_search_path_spec.m4 \
67 $(top_srcdir)/m4/patch_libtool_to_add_host_cc.m4 \
68 $(top_srcdir)/configure.ac
69 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
71 mkinstalldirs = $(SHELL) $(top_srcdir)/uses/mkinstalldirs
72 CONFIG_HEADER = $(top_builddir)/config.h
74 CONFIG_CLEAN_VPATH_FILES =
77 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
83 AUTOHEADER = @AUTOHEADER@
87 CCDEPMODE = @CCDEPMODE@
89 CONFIG_FILES = @CONFIG_FILES@
92 CYGPATH_W = @CYGPATH_W@
108 INSTALL_DATA = @INSTALL_DATA@
109 INSTALL_PROGRAM = @INSTALL_PROGRAM@
110 INSTALL_SCRIPT = @INSTALL_SCRIPT@
111 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
112 LARGEFILE_CFLAGS = @LARGEFILE_CFLAGS@
120 LTLIBOBJS = @LTLIBOBJS@
122 MAKEINFO = @MAKEINFO@
132 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
133 PACKAGE_NAME = @PACKAGE_NAME@
134 PACKAGE_STRING = @PACKAGE_STRING@
135 PACKAGE_TARNAME = @PACKAGE_TARNAME@
136 PACKAGE_VERSION = @PACKAGE_VERSION@
137 PATH_SEPARATOR = @PATH_SEPARATOR@
139 PAX_TAR_CREATE = @PAX_TAR_CREATE@
140 PAX_TAR_EXTRACT = @PAX_TAR_EXTRACT@
142 PKG_CONFIG = @PKG_CONFIG@
145 RELEASE_INFO = @RELEASE_INFO@
146 RESOLVES = @RESOLVES@
147 SDL = @top_srcdir@/SDL
149 SET_MAKE = @SET_MAKE@
153 THREAD_SAFE = @THREAD_SAFE@
155 VERSION_INFO = @VERSION_INFO@
157 ZIPTESTS = @ZIPTESTS@
158 ZLIB_INCL = @ZLIB_INCL@
159 ZLIB_LDIR = @ZLIB_LDIR@
160 ZLIB_VERSION = @ZLIB_VERSION@
161 ZZIPLIB_LDFLAGS = @ZZIPLIB_LDFLAGS@
162 abs_builddir = @abs_builddir@
163 abs_srcdir = @abs_srcdir@
164 abs_top_builddir = @abs_top_builddir@
165 abs_top_srcdir = @abs_top_srcdir@
166 ac_ct_CC = @ac_ct_CC@
167 ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
168 aclocaldir = @aclocaldir@
169 am__include = @am__include@
170 am__leading_dot = @am__leading_dot@
171 am__quote = @am__quote@
173 am__untar = @am__untar@
174 ax_enable_builddir_sed = @ax_enable_builddir_sed@
177 build_alias = @build_alias@
178 build_cpu = @build_cpu@
179 build_os = @build_os@
180 build_vendor = @build_vendor@
181 builddir = @builddir@
183 datarootdir = @datarootdir@
186 exec_prefix = @exec_prefix@
188 host_alias = @host_alias@
189 host_cpu = @host_cpu@
191 host_vendor = @host_vendor@
193 includedir = @includedir@
195 install_sh = @install_sh@
197 libexecdir = @libexecdir@
198 localedir = @localedir@
199 localstatedir = @localstatedir@
203 oldincludedir = @oldincludedir@
205 pkgconfig_libdir = @pkgconfig_libdir@
206 pkgconfig_libfile = @pkgconfig_libfile@
207 pkgconfigdir = @pkgconfigdir@
209 program_transform_name = @program_transform_name@
212 sharedstatedir = @sharedstatedir@
214 sysconfdir = @sysconfdir@
216 target_alias = @target_alias@
217 target_cpu = @target_cpu@
218 target_os = @target_os@
219 target_vendor = @target_vendor@
220 top_build_prefix = @top_build_prefix@
221 top_builddir = @top_builddir@
222 top_srcdir = @top_srcdir@
223 AUTOMAKE_OPTIONS = 1.4 foreign
224 AUTOTOOL_VERSION = autoconf-2.52 automake-1.5 libtool-1.4.2
225 PYRUN = PYTHONDONTWRITEBYTECODE=1 $(PYDEFS) @PYTHON@ $(PYFLAGS)
226 PLRUN = PERL_DL_NONLAZY=1 $(PLDEFS) @PERL@ $(PLFLAGS)
227 DELETE = echo deleting...
228 doc_FILES = README.MSVC6 README.SDL COPYING.MPL COPYING.LIB COPYING.ZLIB \
229 zziplib.html zzipmmapped.html zzipfseeko.html
231 htm_FILES = zzip-index.htm zzip-zip.htm zzip-file.htm zzip-sdl-rwops.htm \
232 zzip-extio.htm zzip-xor.htm zzip-crypt.htm zzip-cryptoid.htm \
233 zzip-api.htm zzip-basics.htm zzip-extras.htm zzip-parse.htm \
234 64on32.htm future.htm fseeko.htm mmapped.htm memdisk.htm \
235 configs.htm sfx-make.htm developer.htm download.htm \
236 history.htm referentials.htm faq.htm copying.htm notes.htm \
237 functions.htm zip-php.htm
239 htms_FILES = changes.htm
240 SDL_RWOPS = $(SDL)/SDL_rwops_zzcat.c \
241 $(SDL)/SDL_rwops_zzip.c $(SDL)/SDL_rwops_zzip.h
243 changelog = @top_srcdir@/ChangeLog
244 EXTRA_DIST = make-doc.py $(doc_FILES) $(htm_FILES) $(SDL_RWOPS) \
245 make-doc.pl make-dbk.pl mksite.sh mksite.pl body.htm \
246 $(zzipdoc_FILES) sdocbook.css \
247 zziplib-manpages.dbk zziplib-master.dbk \
250 CLEANFILES = *.pc *.omf
251 DISTCLEANFILES = zziplib.spec manpages.tar htmpages.tar *.html *.xml
252 zzipdoc_FILES = makedocs.py zzipdoc/__init__.py \
253 zzipdoc/commentmarkup.py zzipdoc/match.py \
254 zzipdoc/dbk2htm.py zzipdoc/htm2dbk.py \
255 zzipdoc/functionheader.py zzipdoc/options.py \
256 zzipdoc/functionlisthtmlpage.py zzipdoc/textfileheader.py \
257 zzipdoc/functionlistreference.py zzipdoc/textfile.py \
258 zzipdoc/functionprototype.py zzipdoc/htmldocument.py \
259 zzipdoc/docbookdocument.py
261 html_FILES = $(htm_FILES:.htm=.html) $(htms_FILES:.htm=.html) \
262 $(htm_FILES:.htm=.print.html) $(htms_FILES:.htm=.print.html) \
263 site.html site.print.html
265 omfdir = ${datadir}/omf
266 pkgomfdir = ${omfdir}/${PACKAGE}
267 pkgdocdir = ${mandir}/../doc/${PACKAGE}
268 bins = @top_srcdir@/bins
269 DOCEXAMPLES = $(bins)/zzdir.c $(bins)/zzcat.c \
270 $(bins)/zzobfuscated.c $(bins)/zziptest.c \
271 $(bins)/zzxordir.c $(bins)/zzxorcat.c \
272 $(bins)/zzxorcopy.c $(SDL_RWOPS)
274 SOURCEFORGE_GROUP = zziplib
275 SOURCEFORGE_HOST = web.sourceforge.net
276 SOURCEFORGE_PATH = /home/groups/z/zz/zziplib/htdocs
278 # --------------------------------------------------------------- OMF handling
279 spec_file = $(top_srcdir)/$(PACKAGE).spec
280 DOCSERIES = 775fb73e-1874-11d7-93e9-e18cd7ea3c2e
281 FROMSPEC = $(spec_file) | head -1 | sed -e 's,<,\<,g' -e 's,>,\>,g'
282 DATESPEC = `date +%Y-%m-%d`
283 DOCBOOKDTD = -//OASIS/DTD Docbook V4.1.2//EN
284 MANSERIES = a302c642-1888-11d7-86f6-ba4b52ef847d
285 mksite_sh_args = --VERSION=$(VERSION) --xml --src-dir=$(srcdir) --print
289 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
291 case '$(am__configure_deps)' in \
293 ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
294 && { if test -f $@; then exit 0; else break; fi; }; \
298 echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign docs/Makefile'; \
299 $(am__cd) $(top_srcdir) && \
300 $(AUTOMAKE) --foreign docs/Makefile
302 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
305 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
307 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
308 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
311 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
312 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
314 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
315 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
316 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
317 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
318 $(am__aclocal_m4_deps):
332 distdir: $(DISTFILES)
333 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
334 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
335 list='$(DISTFILES)'; \
336 dist_files=`for file in $$list; do echo $$file; done | \
337 sed -e "s|^$$srcdirstrip/||;t" \
338 -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
339 case $$dist_files in \
340 */*) $(MKDIR_P) `echo "$$dist_files" | \
341 sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
344 for file in $$dist_files; do \
345 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
346 if test -d $$d/$$file; then \
347 dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
348 if test -d "$(distdir)/$$file"; then \
349 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
351 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
352 cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
353 find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
355 cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
357 test -f "$(distdir)/$$file" \
358 || cp -p $$d/$$file "$(distdir)/$$file" \
367 install-exec: install-exec-am
368 install-data: install-data-am
369 uninstall: uninstall-am
372 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
374 installcheck: installcheck-am
376 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
377 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
378 `test -z '$(STRIP)' || \
379 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
383 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
386 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
387 -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
388 -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
390 maintainer-clean-generic:
391 @echo "This command is intended for maintainers to use"
392 @echo "it deletes files that may require special tools to rebuild."
395 clean-am: clean-generic clean-libtool mostlyclean-am
397 distclean: distclean-am
399 distclean-am: clean-am distclean-generic
413 install-data-am: install-data-local
415 install-dvi: install-dvi-am
421 install-html: install-html-am
425 install-info: install-info-am
431 install-pdf: install-pdf-am
435 install-ps: install-ps-am
441 maintainer-clean: maintainer-clean-am
443 maintainer-clean-am: distclean-am maintainer-clean-generic
445 mostlyclean: mostlyclean-am
447 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
459 .MAKE: install-am install-strip
461 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
462 distclean distclean-generic distclean-libtool distdir dvi \
463 dvi-am html html-am info info-am install install-am \
464 install-data install-data-am install-data-local install-dvi \
465 install-dvi-am install-exec install-exec-am install-html \
466 install-html-am install-info install-info-am install-man \
467 install-pdf install-pdf-am install-ps install-ps-am \
468 install-strip installcheck installcheck-am installdirs \
469 maintainer-clean maintainer-clean-generic mostlyclean \
470 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
471 uninstall uninstall-am
475 default : doc @MAINTAINER_MODE_FALSE@ mans
476 clean-doc clean-docs : clean-unpack
477 - rm $(DISTCLEANFILES)
478 - rm $(MAINTAINERCLEANFILES)
479 install-data-local : @MAINTAINER_MODE_FALSE@ install-mans
481 # -------------------------------------------------------------------
482 zziplib.spec : @top_srcdir@/$(PACKAGE).spec
483 @ cp $? $@ # the two zzip-doc.* will grep thru zziplib.spec
484 doc : $(doc_FILES) site.html
485 docs : doc manpages.tar htmpages.tar
488 - rm zziplib2.html zzipmmapped.html zzipfseeko.html
489 $(MAKE) manpages.tar htmpages.tar DELETE=exit
491 zziplib.html: zziplib.xml
492 zziplib.xml: zziplib.spec $(srcdir)/Makefile.am \
493 $(srcdir)/zzipdoc/*.py \
494 $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c
495 $(PYRUN) $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c $(zziplib) \
496 "--package=$(PACKAGE)" "--version=$(VERSION)" \
497 "--onlymainheader=zzip/lib.h" "--output=zziplib"
498 test -s zziplib.docbook && mv zziplib.docbook zziplib.xml
499 zzipmmapped.html: zzipmmapped.xml
500 zzipmmapped.xml: zziplib.spec $(srcdir)/Makefile.am \
501 $(srcdir)/zzipdoc/*.py \
502 $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c
503 $(PYRUN) $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c $(zziplib) \
504 "--package=$(PACKAGE)" "--version=$(VERSION)" \
505 "--onlymainheader=zzip/mmapped.h" "--output=zzipmmapped"
506 test -s zzipmmapped.docbook && mv zzipmmapped.docbook zzipmmapped.xml
507 zzipfseeko.html: zzipfseeko.xml
508 zzipfseeko.xml: zziplib.spec $(srcdir)/Makefile.am \
509 $(srcdir)/zzipdoc/*.py \
510 $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c
511 $(PYRUN) $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c $(zziplib) \
512 "--package=$(PACKAGE)" "--version=$(VERSION)" \
513 "--onlymainheader=zzip/fseeko.h" "--output=zzipfseeko"
514 test -s zzipfseeko.docbook && mv zzipfseeko.docbook zzipfseeko.xml
516 install-docs: $(doc_FILES) $(man_FILES) site.html htmpages.tar
517 $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)
518 $(INSTALL_DATA) $(html_FILES) $(DESTDIR)$(pkgdocdir)
519 for i in $(doc_FILES) $(DOCEXAMPLES) $(changelog) $(srcdir)/README.* \
520 ; do $(INSTALL_DATA) `test -f $$i || echo $(srcdir)/`$$i \
521 $(DESTDIR)$(pkgdocdir) ; done
522 cd $(DESTDIR)$(pkgdocdir) && ln -sf zzip-index.html index.html
523 $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/man
524 @ echo $(PAX_TAR_EXTRACT) htmpages.tar '>>>' $(DESTDIR)$(pkgdocdir)/man/ \
525 ; test -f htmpages.tar || cd "$srcdir" \
526 ; P=`pwd` ; test -s htmpages.tar || exit 1 \
527 ; cd $(DESTDIR)$(pkgdocdir)/man && $(PAX_TAR_EXTRACT) $$P/htmpages.tar \
530 install-doc : install-docs $(PACKAGE)-doc.omf
531 $(mkinstalldirs) $(DESTDIR)$(pkgomfdir)
532 $(INSTALL_DATA) $(PACKAGE)-doc.omf $(DESTDIR)$(pkgomfdir)/
533 - test ".$(DESTDIR)" != "." || scrollkeeper-update
534 www: upload-sourceforge
536 $(MAKE) install-docs DESTDIR=/tmp/zziplib-htdocs-$$USER/
537 echo scp ... $(SOURCEFORGE_HOST):$(SOURCEFORGE_PATH)/ ; sleep 4
538 scp -r /tmp/zziplib-htdocs-$$USER/$(pkgdocdir)/* \
539 $$USER,$(SOURCEFORGE_GROUP)@$(SOURCEFORGE_HOST):$(SOURCEFORGE_PATH)
540 rm -r /tmp/zziplib-htdocs-$$USER/
542 # ------------------------------------------------------------ package manpages
544 install-mans : install-man3
546 man3 man manpages : manpages.tar
547 html htm htmpages : htmpages.tar
549 zziplib-manpages.tar : manpages.tar
550 test -s "$@" || test -s "$(srcdir)/$@"
551 manpages.tar : zziplib.xml zzipmmapped.xml zzipfseeko.xml
552 : "unix man format of the manpages - goes to ../share/man/man3"
553 @ if test "$(XMLTO)" != ":" \
554 ; then echo going to regenerate "$@" in subdir "'"man"'" \
555 ; echo 'test ! -d man3 || rm man3/* ; test -d man3 || mkdir man3' \
556 ; test ! -d man3 || rm man3/* ; test -d man3 || mkdir man3 \
557 ; echo '$(XMLTO) -o man3 man zziplib.xml' \
558 ; $(XMLTO) -o man3 man zziplib.xml \
559 ; echo '$(XMLTO) -o man3 man zzipmmapped.xml' \
560 ; $(XMLTO) -o man3 man zzipmmapped.xml \
561 ; echo '$(XMLTO) -o man3 man zzipfseeko.xml' \
562 ; $(XMLTO) -o man3 man zzipfseeko.xml \
563 ; if test -d man3/man3; then mv man3 man3_ \
564 ; mv man3_/man3 man3; rm -r man3_; fi \
565 ; echo 'chmod 664 man3/*.3' \
566 ; chmod 664 man3/*.3 \
567 ; echo '$(PAX_TAR_CREATE) "$@" man3/' \
568 ; $(PAX_TAR_CREATE) "$@" man3/ \
569 ; echo '$(DELETE); rm man3/*.3 ; rmdir man3' \
570 ; $(DELETE); rm man3/*.3 ; rmdir man3 \
573 ; then echo cp $@ zziplib-$@ "(saved)"; cp $@ zziplib-$@ \
574 ; else echo cp $(srcdir)/zziplib-$@ $@; cp $(srcdir)/zziplib-$@ $@ \
577 zziplib-htmpages.tar : htmpages.tar
578 test -s "$@" || test -s "$(srcdir)/$@"
579 htmpages.tar : zziplib.xml zzipmmapped.xml zzipfseeko.xml zziplib-manpages.dbk
580 : "html format of the manpages - put into zziplib/htdocs/man/*"
581 @ if test "$(XMLTO)" != ":" \
582 ; then echo going to regenerate "$@" in subdir "'"html"'" \
583 ; echo 'test ! -d html || rm /* ; test -d html || mkdir html' \
584 ; test ! -d html || rm html/* ; test -d html || mkdir html \
585 ; echo 'cp $(srcdir)/zziplib-manpages.dbk zziplib-manpages.xml' \
586 ; cp $(srcdir)/zziplib-manpages.dbk zziplib-manpages.xml \
587 ; echo '$(XMLTO) -o html html zziplib-manpages.xml | tee written.lst' \
588 ; $(XMLTO) -o html html zziplib-manpages.xml | tee written.lst \
589 ; echo '$(PAX_TAR_CREATE) $@ html/*.*' \
590 ; $(PAX_TAR_CREATE) $@ html/*.* \
591 ; echo '$(DELETE); rm html/*.* ; rmdir html' \
592 ; $(DELETE); rm html/*.* ; rmdir html \
595 ; then echo cp $@ zziplib-$@ "(saved)"; cp $@ zziplib-$@ \
596 ; else echo cp $(srcdir)/zziplib-$@ $@; cp $(srcdir)/zziplib-$@ $@ \
599 install-man3 : manpages.tar
600 $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
601 P=`pwd` ; test -s manpages.tar || exit 1 \
602 ; cd $(DESTDIR)$(mandir) && $(PAX_TAR_EXTRACT) $$P/manpages.tar \
605 unpack : manpages.tar htmpages.tar
606 test -s manpages.tar && test -s htmpages.tar
607 (rm -rf _htm && mkdir _htm && cd _htm && $(PAX_TAR_EXTRACT) ../htmpages.tar)
608 (rm -rf _man && mkdir _man && cd _man && $(PAX_TAR_EXTRACT) ../manpages.tar)
613 $(PACKAGE)-doc.omf : $(spec_file) Makefile
614 : "OMF for the html documentation - a copy of zziplib.sf.net"
615 echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>' >$@
616 echo '<omf><resource><creator> Guido Draheim </creator>' >>$@
617 grep Packager $(FROMSPEC) | sed -e 's,Packager *: *, <maintainer>,' \
618 -e '/<maintainer>/s,$$,</maintainer>,' >>$@
619 grep Summary $(FROMSPEC) | sed -e 's,Summary *: *, <title>,' \
620 -e '/<title>/s,$$,</title>,' >>$@
621 echo ' <date>'$(DATESPEC)'</date>' >>$@
622 echo ' <version identifier="$(VERSION)" date="'$(DATESPEC)'"/>' >>$@
623 grep Group $(FROMSPEC) | sed -e 's,Group *: *, <subject category=",' \
624 -e 's,/,|,g' -e '/<subject/s,$$," />,' >>$@
625 echo ' <format mime="text/html"/>' >>$@
626 pkgdocdir=`echo "$(pkgdocdir)" | sed -e "s|/[a-z][a-z]*/[.][.]/|/|"` \
627 echo ' <identifier url="file:'"$$pkgdocdir"'/zzip-index.html"/>' >>$@
628 echo ' <language code="C"/>' >>$@
629 echo ' <relation seriesid="$(DOCSERIES)"/>' >>$@
630 echo ' <rights type="GNU LGPL" holder="Guido Draheim"' >>$@
631 pkgdocdir=`echo "$(pkgdocdir)" | sed -e "s|/[a-z][a-z]*/[.][.]/|/|"` \
632 echo ' license="'"$$pkgdocdir"')/COPYING.LIB"/>' >>$@
633 echo '</resource></omf>' >>$@
634 $(PACKAGE)-man.omf : $(PACKAGE)-doc.omf $(PACKAGE).xml
635 : "OMF for functions reference - the docbook master of the manpages"
636 sed -e 's,"text/html","text/xml" dtd="$(DOCBOOKDTD)",' \
637 -e 's,</title>, (Function Reference)</title>,' \
638 -e 's,/index.html,/xml/manpages.xml,' \
639 -e 's,$(DOCSERIES),$(MANSERIES),' $(PACKAGE)-doc.omf > $@
642 omf : $(PACKAGE)-doc.omf $(PACKAGE)-man.omf
643 install-omf : omf zziplib.xml zzipmmapped.xml zzipfseeko.xml
644 : "not installed by default anymore - 'make install-doc' has one OMF"
645 $(mkinstalldirs) $(DESTDIR)$(pkgomfdir)
646 $(INSTALL_DATA) $(PACKAGE)-doc.omf $(DESTDIR)$(pkgomfdir)/
647 $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)
648 $(INSTALL_DATA) $(srcdir)/zziplib-manpages.xml \
649 $(DESTDIR)$(pkgdocdir)/xml/manpages.xml
650 $(INSTALL_DATA) zziplib.xml zzipmmapped.xml zzipfseeko.xml \
651 $(DESTDIR)$(pkgdocdir)/xml/
652 $(INSTALL_DATA) $(PACKAGE)-man.omf $(DESTDIR)$(pkgomfdir)/
653 - test ".$(DESTDIR)" != "." || scrollkeeper-update -v
655 # ----------------------------------------------- mksite.sh for the main html
657 cp $(srcdir)/body.htm site.htm
658 site.html : body.htm site.htm mksite.sh $(htm_FILES) $(htms_FILES)
659 cp $(srcdir)/body.htm site.htm
660 perl $(srcdir)/mksite.pl $(mksite_sh_args) site.htm || \
661 $(SHELL) $(srcdir)/mksite.sh $(mksite_sh_args) site.htm
663 changes.htm : $(top_srcdir)/ChangeLog Makefile
664 echo "<pre>" > $@ ; cat $(top_srcdir)/ChangeLog \
665 | sed -e "s,\\&,\\&\\;,g" \
666 -e "s,<,\\<\\;,g" -e "s,>,\\>\\;,g" \
667 -e "/^[A-Z].*[12][09][09][09]/s,\\(.*\\),<b>&</b>," \
668 -e "/^[0-9]/s,\\(.*\\),<b>&</b>," >> $@ ; echo "</pre>" >>$@
670 # ----------------------------------------------- create pdf via docbook xml
671 # sorry, the xmlto / docbook-xsl are too broken to rebuild the PDF anymore
673 zzip.xml : $(htm_FILES) zziplib.xml make-dbk.pl
674 : '@PERL@ make-dbk.pl $(htm_FILES) zziplib.xml >$@'
675 @PYTHON@ $(srcdir)/zzipdoc/htm2dbk.py $(htm_FILES) zziplib.xml >$@
676 test -s "$@" || rm "$@"
679 xmlto html-nochunks zzip.xml
683 zziplib.pdf : $(htm_FILES) $(srcdir)/zziplib-master.dbk mksite.pl
684 cp $(srcdir)/zziplib-master.dbk zziplib.docbook
685 xmlto pdf zziplib.docbook ; rm zziplib.docbook
690 # Tell versions [3.59,3.63) of GNU make to not export all variables.
691 # Otherwise a system limit (for SysV at least) may be exceeded.