]> granicus.if.org Git - zziplib/blob - docs/Makefile.in
ef4882e3959b1d98b25b3b57e62ef5551fb932e6
[zziplib] / docs / Makefile.in
1 # Makefile.in generated by automake 1.11 from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009  Free Software Foundation,
6 # Inc.
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.
10
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
14 # PARTICULAR PURPOSE.
15
16 @SET_MAKE@
17 VPATH = @srcdir@
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)
28 NORMAL_INSTALL = :
29 PRE_INSTALL = :
30 POST_INSTALL = :
31 NORMAL_UNINSTALL = :
32 PRE_UNINSTALL = :
33 POST_UNINSTALL = :
34 build_triplet = @build@
35 host_triplet = @host@
36 target_triplet = @target@
37 subdir = docs
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) \
70         $(ACLOCAL_M4)
71 mkinstalldirs = $(SHELL) $(top_srcdir)/uses/mkinstalldirs
72 CONFIG_HEADER = $(top_builddir)/config.h
73 CONFIG_CLEAN_FILES =
74 CONFIG_CLEAN_VPATH_FILES =
75 SOURCES =
76 DIST_SOURCES =
77 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
78 ACLOCAL = @ACLOCAL@
79 AMTAR = @AMTAR@
80 AR = @AR@
81 AS = @AS@
82 AUTOCONF = @AUTOCONF@
83 AUTOHEADER = @AUTOHEADER@
84 AUTOMAKE = @AUTOMAKE@
85 AWK = @AWK@
86 CC = @CC@
87 CCDEPMODE = @CCDEPMODE@
88 CFLAGS = @CFLAGS@
89 CONFIG_FILES = @CONFIG_FILES@
90 CPP = @CPP@
91 CPPFLAGS = @CPPFLAGS@
92 CYGPATH_W = @CYGPATH_W@
93 DEFS = @DEFS@
94 DEPDIR = @DEPDIR@
95 DLLTOOL = @DLLTOOL@
96 DSYMUTIL = @DSYMUTIL@
97 DUMPBIN = @DUMPBIN@
98 ECHO_C = @ECHO_C@
99 ECHO_N = @ECHO_N@
100 ECHO_T = @ECHO_T@
101 EGREP = @EGREP@
102 EXEEXT = @EXEEXT@
103 FGREP = @FGREP@
104 GNUTAR = @GNUTAR@
105 GREP = @GREP@
106 GTAR = @GTAR@
107 INSTALL = @INSTALL@
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@
113 LD = @LD@
114 LDFLAGS = @LDFLAGS@
115 LIBOBJS = @LIBOBJS@
116 LIBS = @LIBS@
117 LIBTOOL = @LIBTOOL@
118 LIPO = @LIPO@
119 LN_S = @LN_S@
120 LTLIBOBJS = @LTLIBOBJS@
121 MAINT = @MAINT@
122 MAKEINFO = @MAKEINFO@
123 MKDIR_P = @MKDIR_P@
124 MKZIP = @MKZIP@
125 NM = @NM@
126 NMEDIT = @NMEDIT@
127 OBJDUMP = @OBJDUMP@
128 OBJEXT = @OBJEXT@
129 OTOOL = @OTOOL@
130 OTOOL64 = @OTOOL64@
131 PACKAGE = @PACKAGE@
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@
138 PAX = @PAX@
139 PAX_TAR_CREATE = @PAX_TAR_CREATE@
140 PAX_TAR_EXTRACT = @PAX_TAR_EXTRACT@
141 PERL = @PERL@
142 PKG_CONFIG = @PKG_CONFIG@
143 PYTHON = @PYTHON@
144 RANLIB = @RANLIB@
145 RELEASE_INFO = @RELEASE_INFO@
146 RESOLVES = @RESOLVES@
147 SDL = @top_srcdir@/SDL
148 SED = @SED@
149 SET_MAKE = @SET_MAKE@
150 SHELL = @SHELL@
151 STRIP = @STRIP@
152 TAR = @TAR@
153 THREAD_SAFE = @THREAD_SAFE@
154 VERSION = @VERSION@
155 VERSION_INFO = @VERSION_INFO@
156 XMLTO = @XMLTO@
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@
172 am__tar = @am__tar@
173 am__untar = @am__untar@
174 ax_enable_builddir_sed = @ax_enable_builddir_sed@
175 bindir = @bindir@
176 build = @build@
177 build_alias = @build_alias@
178 build_cpu = @build_cpu@
179 build_os = @build_os@
180 build_vendor = @build_vendor@
181 builddir = @builddir@
182 datadir = @datadir@
183 datarootdir = @datarootdir@
184 docdir = @docdir@
185 dvidir = @dvidir@
186 exec_prefix = @exec_prefix@
187 host = @host@
188 host_alias = @host_alias@
189 host_cpu = @host_cpu@
190 host_os = @host_os@
191 host_vendor = @host_vendor@
192 htmldir = @htmldir@
193 includedir = @includedir@
194 infodir = @infodir@
195 install_sh = @install_sh@
196 libdir = @libdir@
197 libexecdir = @libexecdir@
198 localedir = @localedir@
199 localstatedir = @localstatedir@
200 lt_ECHO = @lt_ECHO@
201 mandir = @mandir@
202 mkdir_p = @mkdir_p@
203 oldincludedir = @oldincludedir@
204 pdfdir = @pdfdir@
205 pkgconfig_libdir = @pkgconfig_libdir@
206 pkgconfig_libfile = @pkgconfig_libfile@
207 pkgconfigdir = @pkgconfigdir@
208 prefix = @prefix@
209 program_transform_name = @program_transform_name@
210 psdir = @psdir@
211 sbindir = @sbindir@
212 sharedstatedir = @sharedstatedir@
213 srcdir = @srcdir@
214 sysconfdir = @sysconfdir@
215 target = @target@
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
230
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
238
239 htms_FILES = changes.htm
240 SDL_RWOPS = $(SDL)/SDL_rwops_zzcat.c \
241             $(SDL)/SDL_rwops_zzip.c $(SDL)/SDL_rwops_zzip.h
242
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 \
248              zziplib-manpages.tar
249
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
260
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
264
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)
273
274 SOURCEFORGE_GROUP = zziplib
275 SOURCEFORGE_HOST = web.sourceforge.net
276 SOURCEFORGE_PATH = /home/groups/z/zz/zziplib/htdocs
277
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,<,\&lt;,g' -e 's,>,\&gt;,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
286 all: all-am
287
288 .SUFFIXES:
289 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
290         @for dep in $?; do \
291           case '$(am__configure_deps)' in \
292             *$$dep*) \
293               ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
294                 && { if test -f $@; then exit 0; else break; fi; }; \
295               exit 1;; \
296           esac; \
297         done; \
298         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign docs/Makefile'; \
299         $(am__cd) $(top_srcdir) && \
300           $(AUTOMAKE) --foreign docs/Makefile
301 .PRECIOUS: Makefile
302 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
303         @case '$?' in \
304           *config.status*) \
305             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
306           *) \
307             echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
308             cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
309         esac;
310
311 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
312         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
313
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):
319
320 mostlyclean-libtool:
321         -rm -f *.lo
322
323 clean-libtool:
324         -rm -rf .libs _libs
325 tags: TAGS
326 TAGS:
327
328 ctags: CTAGS
329 CTAGS:
330
331
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,/[^/]*$$,,' | \
342                            sort -u` ;; \
343         esac; \
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 {} \;; \
350             fi; \
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 {} \;; \
354             fi; \
355             cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
356           else \
357             test -f "$(distdir)/$$file" \
358             || cp -p $$d/$$file "$(distdir)/$$file" \
359             || exit 1; \
360           fi; \
361         done
362 check-am: all-am
363 check: check-am
364 all-am: Makefile
365 installdirs:
366 install: install-am
367 install-exec: install-exec-am
368 install-data: install-data-am
369 uninstall: uninstall-am
370
371 install-am: all-am
372         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
373
374 installcheck: installcheck-am
375 install-strip:
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
380 mostlyclean-generic:
381
382 clean-generic:
383         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
384
385 distclean-generic:
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)
389
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."
393 clean: clean-am
394
395 clean-am: clean-generic clean-libtool mostlyclean-am
396
397 distclean: distclean-am
398         -rm -f Makefile
399 distclean-am: clean-am distclean-generic
400
401 dvi: dvi-am
402
403 dvi-am:
404
405 html: html-am
406
407 html-am:
408
409 info: info-am
410
411 info-am:
412
413 install-data-am: install-data-local
414
415 install-dvi: install-dvi-am
416
417 install-dvi-am:
418
419 install-exec-am:
420
421 install-html: install-html-am
422
423 install-html-am:
424
425 install-info: install-info-am
426
427 install-info-am:
428
429 install-man:
430
431 install-pdf: install-pdf-am
432
433 install-pdf-am:
434
435 install-ps: install-ps-am
436
437 install-ps-am:
438
439 installcheck-am:
440
441 maintainer-clean: maintainer-clean-am
442         -rm -f Makefile
443 maintainer-clean-am: distclean-am maintainer-clean-generic
444
445 mostlyclean: mostlyclean-am
446
447 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
448
449 pdf: pdf-am
450
451 pdf-am:
452
453 ps: ps-am
454
455 ps-am:
456
457 uninstall-am:
458
459 .MAKE: install-am install-strip
460
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
472
473
474 all : all-am default
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
480
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
486 # docu : docs
487 docu : 
488         - rm zziplib2.html zzipmmapped.html zzipfseeko.html
489         $(MAKE) manpages.tar htmpages.tar DELETE=exit
490
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
515
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 \
528         ; true
529
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
535 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/
541
542 # ------------------------------------------------------------ package manpages
543 mans : manpages
544 install-mans : install-man3
545
546 man3 man manpages : manpages.tar
547 html htm htmpages : htmpages.tar
548
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  \
571         ; fi ; true
572         @ if test -s $@ \
573         ; then echo cp $@ zziplib-$@ "(saved)"; cp $@ zziplib-$@ \
574         ; else echo cp $(srcdir)/zziplib-$@ $@; cp $(srcdir)/zziplib-$@ $@ \
575         ; fi
576
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  \
593         ; fi ; true
594         @ if test -s $@ \
595         ; then echo cp $@ zziplib-$@ "(saved)"; cp $@ zziplib-$@ \
596         ; else echo cp $(srcdir)/zziplib-$@ $@; cp $(srcdir)/zziplib-$@ $@ \
597         ; fi
598
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 \
603         ; true
604
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)
609 clean-unpack : 
610         rm -rf _htm
611         rm -rf _man
612
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 > $@
640         test -s $@ || rm $@
641
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
654
655 # ----------------------------------------------- mksite.sh for the main html
656 site.htm : body.htm
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
662
663 changes.htm : $(top_srcdir)/ChangeLog Makefile 
664         echo "<pre>" > $@ ; cat $(top_srcdir)/ChangeLog \
665         | sed -e "s,\\&,\\&amp\\;,g" \
666         -e "s,<,\\&lt\\;,g" -e "s,>,\\&gt\\;,g" \
667         -e "/^[A-Z].*[12][09][09][09]/s,\\(.*\\),<b>&</b>," \
668         -e "/^[0-9]/s,\\(.*\\),<b>&</b>," >> $@ ; echo "</pre>" >>$@
669
670 # ----------------------------------------------- create pdf via docbook xml
671 # sorry, the xmlto / docbook-xsl are too broken to rebuild the PDF anymore
672
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 "$@"
677
678 zzip.html : zzip.xml
679         xmlto html-nochunks zzip.xml
680 zzip.pdf  : zzip.xml
681         xmlto pdf zzip.xml
682
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
686         test -s zziplib.pdf
687
688 pdfs : zziplib.pdf
689
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.
692 .NOEXPORT: