]> granicus.if.org Git - zziplib/blob - docs/Makefile.in
indent-check
[zziplib] / docs / Makefile.in
1 # Makefile.in generated by automake 1.9.6 from Makefile.am.
2 # @configure_input@
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005  Free Software Foundation, Inc.
6 # This Makefile.in is free software; the Free Software Foundation
7 # gives unlimited permission to copy and/or distribute it,
8 # with or without modifications, as long as this notice is preserved.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
12 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
13 # PARTICULAR PURPOSE.
14
15 @SET_MAKE@
16 srcdir = @srcdir@
17 top_srcdir = @top_srcdir@
18 VPATH = @srcdir@
19 pkgdatadir = $(datadir)/@PACKAGE@
20 pkglibdir = $(libdir)/@PACKAGE@
21 pkgincludedir = $(includedir)/@PACKAGE@
22 top_builddir = ..
23 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
24 INSTALL = @INSTALL@
25 install_sh_DATA = $(install_sh) -c -m 644
26 install_sh_PROGRAM = $(install_sh) -c
27 install_sh_SCRIPT = $(install_sh) -c
28 INSTALL_HEADER = $(INSTALL_DATA)
29 transform = $(program_transform_name)
30 NORMAL_INSTALL = :
31 PRE_INSTALL = :
32 POST_INSTALL = :
33 NORMAL_UNINSTALL = :
34 PRE_UNINSTALL = :
35 POST_UNINSTALL = :
36 build_triplet = @build@
37 host_triplet = @host@
38 target_triplet = @target@
39 subdir = docs
40 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in COPYING.LIB
41 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
42 am__aclocal_m4_deps = $(top_srcdir)/m4/ac_compile_check_sizeof.m4 \
43         $(top_srcdir)/m4/ac_set_default_paths_system.m4 \
44         $(top_srcdir)/m4/ac_sys_largefile_sensitive.m4 \
45         $(top_srcdir)/m4/acx_restrict.m4 \
46         $(top_srcdir)/m4/ax_cflags_gcc_option.m4 \
47         $(top_srcdir)/m4/ax_cflags_no_writable_strings.m4 \
48         $(top_srcdir)/m4/ax_cflags_strict_prototypes.m4 \
49         $(top_srcdir)/m4/ax_cflags_warn_all.m4 \
50         $(top_srcdir)/m4/ax_check_aligned_access_required.m4 \
51         $(top_srcdir)/m4/ax_configure_args.m4 \
52         $(top_srcdir)/m4/ax_create_pkgconfig_info.m4 \
53         $(top_srcdir)/m4/ax_enable_builddir_uname.m4 \
54         $(top_srcdir)/m4/ax_expand_prefix.m4 \
55         $(top_srcdir)/m4/ax_maintainer_mode_auto_silent.m4 \
56         $(top_srcdir)/m4/ax_not_enable_frame_pointer.m4 \
57         $(top_srcdir)/m4/ax_prefix_config_h.m4 \
58         $(top_srcdir)/m4/ax_set_version_info.m4 \
59         $(top_srcdir)/m4/ax_spec_file.m4 \
60         $(top_srcdir)/m4/ax_spec_package_version.m4 \
61         $(top_srcdir)/m4/ax_warning_default_aclocaldir.m4 \
62         $(top_srcdir)/m4/ax_warning_default_pkgconfig.m4 \
63         $(top_srcdir)/m4/patch_libtool_on_darwin_zsh_overquoting.m4 \
64         $(top_srcdir)/m4/patch_libtool_sys_lib_search_path_spec.m4 \
65         $(top_srcdir)/m4/patch_libtool_to_add_host_cc.m4 \
66         $(top_srcdir)/configure.ac
67 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
68         $(ACLOCAL_M4)
69 mkinstalldirs = $(SHELL) $(top_srcdir)/uses/mkinstalldirs
70 CONFIG_HEADER = $(top_builddir)/config.h
71 CONFIG_CLEAN_FILES =
72 SOURCES =
73 DIST_SOURCES =
74 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
75 ACLOCAL = @ACLOCAL@
76 AMDEP_FALSE = @AMDEP_FALSE@
77 AMDEP_TRUE = @AMDEP_TRUE@
78 AMTAR = @AMTAR@
79 AR = @AR@
80 AS = @AS@
81 AUTOCONF = @AUTOCONF@
82 AUTOHEADER = @AUTOHEADER@
83 AUTOMAKE = @AUTOMAKE@
84 AWK = @AWK@
85 CC = @CC@
86 CCDEPMODE = @CCDEPMODE@
87 CFLAGS = @CFLAGS@
88 CONFIG_FILES = @CONFIG_FILES@
89 CPP = @CPP@
90 CPPFLAGS = @CPPFLAGS@
91 CXX = @CXX@
92 CXXCPP = @CXXCPP@
93 CXXDEPMODE = @CXXDEPMODE@
94 CXXFLAGS = @CXXFLAGS@
95 CYGPATH_W = @CYGPATH_W@
96 DEFS = @DEFS@
97 DEPDIR = @DEPDIR@
98 DLLTOOL = @DLLTOOL@
99 ECHO = @ECHO@
100 ECHO_C = @ECHO_C@
101 ECHO_N = @ECHO_N@
102 ECHO_T = @ECHO_T@
103 EGREP = @EGREP@
104 EXEEXT = @EXEEXT@
105 F77 = @F77@
106 FFLAGS = @FFLAGS@
107 GREP = @GREP@
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 LDFLAGS = @LDFLAGS@
114 LIBOBJS = @LIBOBJS@
115 LIBS = @LIBS@
116 LIBTOOL = @LIBTOOL@
117 LN_S = @LN_S@
118 LTLIBOBJS = @LTLIBOBJS@
119 MAINT = @MAINT@
120 MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@
121 MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@
122 MAKEINFO = @MAKEINFO@
123 MKZIP = @MKZIP@
124 OBJDUMP = @OBJDUMP@
125 OBJEXT = @OBJEXT@
126 PACKAGE = @PACKAGE@
127 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
128 PACKAGE_NAME = @PACKAGE_NAME@
129 PACKAGE_STRING = @PACKAGE_STRING@
130 PACKAGE_TARNAME = @PACKAGE_TARNAME@
131 PACKAGE_VERSION = @PACKAGE_VERSION@
132 PATH_SEPARATOR = @PATH_SEPARATOR@
133 PERL = @PERL@
134 PKG_CONFIG = @PKG_CONFIG@
135 PYTHON = @PYTHON@
136 RANLIB = @RANLIB@
137 RELEASE_INFO = @RELEASE_INFO@
138 RESOLVES = @RESOLVES@
139 SDL = @top_srcdir@/SDL
140 SET_MAKE = @SET_MAKE@
141 SHELL = @SHELL@
142 STRIP = @STRIP@
143 THREAD_SAFE = @THREAD_SAFE@
144 VERSION = @VERSION@
145 VERSION_INFO = @VERSION_INFO@
146 XMLTO = @XMLTO@
147 ZIPTESTS = @ZIPTESTS@
148 ZLIB_INCL = @ZLIB_INCL@
149 ZLIB_LDIR = @ZLIB_LDIR@
150 ZLIB_VERSION = @ZLIB_VERSION@
151 ZZIPLIB_LDFLAGS = @ZZIPLIB_LDFLAGS@
152 ac_ct_CC = @ac_ct_CC@
153 ac_ct_CXX = @ac_ct_CXX@
154 ac_ct_F77 = @ac_ct_F77@
155 aclocaldir = @aclocaldir@
156 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
157 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
158 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
159 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
160 am__include = @am__include@
161 am__leading_dot = @am__leading_dot@
162 am__quote = @am__quote@
163 am__tar = @am__tar@
164 am__untar = @am__untar@
165 ax_enable_builddir_sed = @ax_enable_builddir_sed@
166 bindir = @bindir@
167 build = @build@
168 build_alias = @build_alias@
169 build_cpu = @build_cpu@
170 build_os = @build_os@
171 build_vendor = @build_vendor@
172 datadir = @datadir@
173 datarootdir = @datarootdir@
174 docdir = @docdir@
175 dvidir = @dvidir@
176 exec_prefix = @exec_prefix@
177 host = @host@
178 host_alias = @host_alias@
179 host_cpu = @host_cpu@
180 host_os = @host_os@
181 host_vendor = @host_vendor@
182 htmldir = @htmldir@
183 includedir = @includedir@
184 infodir = @infodir@
185 install_sh = @install_sh@
186 libdir = @libdir@
187 libexecdir = @libexecdir@
188 localedir = @localedir@
189 localstatedir = @localstatedir@
190 mandir = @mandir@
191 mkdir_p = @mkdir_p@
192 oldincludedir = @oldincludedir@
193 pdfdir = @pdfdir@
194 pkgconfig_libdir = @pkgconfig_libdir@
195 pkgconfig_libfile = @pkgconfig_libfile@
196 pkgconfigdir = @pkgconfigdir@
197 prefix = @prefix@
198 program_transform_name = @program_transform_name@
199 psdir = @psdir@
200 sbindir = @sbindir@
201 sharedstatedir = @sharedstatedir@
202 sysconfdir = @sysconfdir@
203 target = @target@
204 target_alias = @target_alias@
205 target_cpu = @target_cpu@
206 target_os = @target_os@
207 target_vendor = @target_vendor@
208 AUTOMAKE_OPTIONS = 1.4 foreign
209 AUTOTOOL_VERSION = autoconf-2.52 automake-1.5 libtool-1.4.2
210 PYRUN = $(PYDEFS) @PYTHON@ $(PYFLAGS)
211 PLRUN = $(PLDEFS) @PERL@   $(PLFLAGS)
212 DELETE = echo deleting...
213 doc_FILES = README.MSVC6 README.SDL COPYING.MPL COPYING.LIB COPYING.ZLIB \
214             zziplib.html zzipmmapped.html zzipfseeko.html
215
216 htm_FILES = zzip-index.htm zzip-zip.htm zzip-file.htm zzip-sdl-rwops.htm \
217             zzip-extio.htm zzip-xor.htm zzip-crypt.htm zzip-cryptoid.htm \
218             zzip-api.htm  zzip-basics.htm zzip-extras.htm zzip-parse.htm \
219             64on32.htm future.htm fseeko.htm mmapped.htm memdisk.htm \
220             configs.htm sfx-make.htm   developer.htm download.htm \
221             history.htm referentials.htm  faq.htm copying.htm notes.htm \
222             functions.htm zip-php.htm
223
224 htms_FILES = changes.htm
225 SDL_RWOPS = $(SDL)/SDL_rwops_zzcat.c \
226             $(SDL)/SDL_rwops_zzip.c $(SDL)/SDL_rwops_zzip.h
227
228 changelog = @top_srcdir@/ChangeLog
229 EXTRA_DIST = make-doc.py $(doc_FILES) $(htm_FILES) $(SDL_RWOPS) \
230              make-doc.pl make-dbk.pl   mksite.sh mksite.pl body.htm \
231              $(zzipdoc_FILES) sdocbook.css \
232              zziplib-manpages.dbk zziplib-master.dbk \
233              zziplib-manpages.ar 
234
235 CLEANFILES = *.pc *.omf
236 DISTCLEANFILES = zziplib.spec manpages.ar htmpages.ar *.html *.xml
237 zzipdoc_FILES = makedocs.py               zzipdoc/__init__.py \
238         zzipdoc/commentmarkup.py          zzipdoc/match.py    \
239         zzipdoc/dbk2htm.py                zzipdoc/htm2dbk.py  \
240         zzipdoc/functionheader.py         zzipdoc/options.py  \
241         zzipdoc/functionlisthtmlpage.py   zzipdoc/textfileheader.py \
242         zzipdoc/functionlistreference.py  zzipdoc/textfile.py \
243         zzipdoc/functionprototype.py      zzipdoc/htmldocument.py \
244                                           zzipdoc/docbookdocument.py
245
246 html_FILES = $(htm_FILES:.htm=.html)       $(htms_FILES:.htm=.html) \
247              $(htm_FILES:.htm=.print.html) $(htms_FILES:.htm=.print.html) \
248              site.html site.print.html
249
250 omfdir = ${datadir}/omf
251 pkgomfdir = ${omfdir}/${PACKAGE}
252 SFNETDIR = /groups/z/zz/zziplib/htdocs
253 pkgdocdir = ${mandir}/../doc/${PACKAGE}
254 bins = @top_srcdir@/bins
255 DOCEXAMPLES = $(bins)/zzdir.c $(bins)/zzcat.c \
256               $(bins)/zzobfuscated.c $(bins)/zziptest.c \
257               $(bins)/zzxordir.c $(bins)/zzxorcat.c \
258               $(bins)/zzxorcopy.c        $(SDL_RWOPS)
259
260
261 # --------------------------------------------------------------- OMF handling
262 spec_file = $(top_srcdir)/$(PACKAGE).spec
263 DOCSERIES = 775fb73e-1874-11d7-93e9-e18cd7ea3c2e
264 FROMSPEC = $(spec_file) | head -1 | sed -e 's,<,\&lt;,g' -e 's,>,\&gt;,g'
265 DATESPEC = `date +%Y-%m-%d`
266 DOCBOOKDTD = -//OASIS/DTD Docbook V4.1.2//EN
267 MANSERIES = a302c642-1888-11d7-86f6-ba4b52ef847d
268 mksite_sh_args = --VERSION=$(VERSION) --xml --src-dir=$(srcdir) --print
269 all: all-am
270
271 .SUFFIXES:
272 $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am  $(am__configure_deps)
273         @for dep in $?; do \
274           case '$(am__configure_deps)' in \
275             *$$dep*) \
276               cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
277                 && exit 0; \
278               exit 1;; \
279           esac; \
280         done; \
281         echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign  docs/Makefile'; \
282         cd $(top_srcdir) && \
283           $(AUTOMAKE) --foreign  docs/Makefile
284 .PRECIOUS: Makefile
285 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
286         @case '$?' in \
287           *config.status*) \
288             cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
289           *) \
290             echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
291             cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
292         esac;
293
294 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
295         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
296
297 $(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
298         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
299 $(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
300         cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
301
302 mostlyclean-libtool:
303         -rm -f *.lo
304
305 clean-libtool:
306         -rm -rf .libs _libs
307
308 distclean-libtool:
309         -rm -f libtool
310 uninstall-info-am:
311 tags: TAGS
312 TAGS:
313
314 ctags: CTAGS
315 CTAGS:
316
317
318 distdir: $(DISTFILES)
319         $(mkdir_p) $(distdir)/$(SDL) $(distdir)/zzipdoc
320         @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
321         topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
322         list='$(DISTFILES)'; for file in $$list; do \
323           case $$file in \
324             $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
325             $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
326           esac; \
327           if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
328           dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
329           if test "$$dir" != "$$file" && test "$$dir" != "."; then \
330             dir="/$$dir"; \
331             $(mkdir_p) "$(distdir)$$dir"; \
332           else \
333             dir=''; \
334           fi; \
335           if test -d $$d/$$file; then \
336             if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
337               cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
338             fi; \
339             cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
340           else \
341             test -f $(distdir)/$$file \
342             || cp -p $$d/$$file $(distdir)/$$file \
343             || exit 1; \
344           fi; \
345         done
346 check-am: all-am
347 check: check-am
348 all-am: Makefile
349 installdirs:
350 install: install-am
351 install-exec: install-exec-am
352 install-data: install-data-am
353 uninstall: uninstall-am
354
355 install-am: all-am
356         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
357
358 installcheck: installcheck-am
359 install-strip:
360         $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
361           install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
362           `test -z '$(STRIP)' || \
363             echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
364 mostlyclean-generic:
365
366 clean-generic:
367         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
368
369 distclean-generic:
370         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
371         -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
372
373 maintainer-clean-generic:
374         @echo "This command is intended for maintainers to use"
375         @echo "it deletes files that may require special tools to rebuild."
376 clean: clean-am
377
378 clean-am: clean-generic clean-libtool mostlyclean-am
379
380 distclean: distclean-am
381         -rm -f Makefile
382 distclean-am: clean-am distclean-generic distclean-libtool
383
384 dvi: dvi-am
385
386 dvi-am:
387
388 html: html-am
389
390 info: info-am
391
392 info-am:
393
394 install-data-am: install-data-local
395
396 install-exec-am:
397
398 install-info: install-info-am
399
400 install-man:
401
402 installcheck-am:
403
404 maintainer-clean: maintainer-clean-am
405         -rm -f Makefile
406 maintainer-clean-am: distclean-am maintainer-clean-generic
407
408 mostlyclean: mostlyclean-am
409
410 mostlyclean-am: mostlyclean-generic mostlyclean-libtool
411
412 pdf: pdf-am
413
414 pdf-am:
415
416 ps: ps-am
417
418 ps-am:
419
420 uninstall-am: uninstall-info-am
421
422 .PHONY: all all-am check check-am clean clean-generic clean-libtool \
423         distclean distclean-generic distclean-libtool distdir dvi \
424         dvi-am html html-am info info-am install install-am \
425         install-data install-data-am install-data-local install-exec \
426         install-exec-am install-info install-info-am install-man \
427         install-strip installcheck installcheck-am installdirs \
428         maintainer-clean maintainer-clean-generic mostlyclean \
429         mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
430         uninstall uninstall-am uninstall-info-am
431
432
433 all : all-am default
434 default : doc @MAINTAINER_MODE_FALSE@ mans
435 clean-doc clean-docs : clean-unpack
436         - rm $(DISTCLEANFILES) 
437         - rm $(MAINTAINERCLEANFILES)
438 install-data-local : @MAINTAINER_MODE_FALSE@ install-mans
439
440 # -------------------------------------------------------------------
441 zziplib.spec : @top_srcdir@/$(PACKAGE).spec
442         @ $(LN_S) $? $@ # the two zzip-doc.* will grep thru zziplib.spec
443 doc  : $(doc_FILES) site.html
444 docs : doc manpages.ar htmpages.ar
445 # docu : docs
446 docu : 
447         - rm zziplib2.html zzipmmapped.html zzipfseeko.html
448         $(MAKE) manpages.ar htmpages.ar DELETE=exit
449
450 zziplib.html zziplib.xml : zziplib.spec $(srcdir)/Makefile.am \
451                  $(srcdir)/zzipdoc/*.py \
452                  $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c
453         $(PYRUN) $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c $(zziplib) \
454                    "--package=$(PACKAGE)" "--version=$(VERSION)" \
455                    "--onlymainheader=zzip/lib.h" "--output=zziplib"
456         test -s zziplib.docbook && mv zziplib.docbook zziplib.xml
457 zzipmmapped.html zzipmmapped.xml : zziplib.spec $(srcdir)/Makefile.am \
458                  $(srcdir)/zzipdoc/*.py \
459                  $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c
460         $(PYRUN) $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c $(zziplib) \
461                    "--package=$(PACKAGE)" "--version=$(VERSION)" \
462                    "--onlymainheader=zzip/mmapped.h" "--output=zzipmmapped"
463         test -s zzipmmapped.docbook && mv zzipmmapped.docbook zzipmmapped.xml
464 zzipfseeko.html zzipfseeko.xml : zziplib.spec $(srcdir)/Makefile.am \
465                  $(srcdir)/zzipdoc/*.py \
466                  $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c
467         $(PYRUN) $(srcdir)/makedocs.py @top_srcdir@/zzip/*.c $(zziplib) \
468                    "--package=$(PACKAGE)" "--version=$(VERSION)" \
469                    "--onlymainheader=zzip/fseeko.h" "--output=zzipfseeko"
470         test -s zzipfseeko.docbook && mv zzipfseeko.docbook zzipfseeko.xml
471
472 install-docs: $(doc_FILES) $(man_FILES) site.html htmpages.ar
473         $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)
474         $(INSTALL_DATA) $(html_FILES) $(DESTDIR)$(pkgdocdir)
475         for i in $(doc_FILES) $(DOCEXAMPLES) $(changelog) $(srcdir)/README.* \
476         ; do $(INSTALL_DATA) `test -f $$i || echo $(srcdir)/`$$i \
477             $(DESTDIR)$(pkgdocdir) ; done
478         cd $(DESTDIR)$(pkgdocdir) && ln -sf zzip-index.html index.html
479         $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)/man
480         @ echo ar x htmpages.ar '>>>' $(DESTDIR)$(pkgdocdir)/man/ \
481         ; test -f htmpages.ar || cd "$srcdir" ; P=`pwd` \
482         ; cd $(DESTDIR)$(pkgdocdir)/man && ar x $$P/htmpages.ar
483
484 install-doc : install-docs $(PACKAGE)-doc.omf
485         $(mkinstalldirs) $(DESTDIR)$(pkgomfdir)
486         $(INSTALL_DATA) $(PACKAGE)-doc.omf $(DESTDIR)$(pkgomfdir)/
487         - test ".$(DESTDIR)" != "." || scrollkeeper-update
488
489 install-sf:
490         $(MAKE) install-docs DESTDIR=/tmp/zziplib-htdocs-$$USER/
491         echo scp ... shell.sf.net:$(pkgdocdir)/ ; sleep 4
492         scp -r /tmp/zziplib-htdocs-$$USER/$(pkgdocdir)/* \
493                shell.sf.net:/home/$(SFNETDIR)/
494         rm -r /tmp/zziplib-htdocs-$$USER/
495
496 # ------------------------------------------------------------ package manpages
497 mans : manpages
498 install-mans : install-man3
499
500 man3 man manpages : manpages.ar
501 html htm htmpages : htmpages.ar
502
503 zziplib-manpages.ar : manpages.ar
504         test -s "$@" || test -s "$(srcdir)/$@"
505 manpages.ar : zziplib.xml zzipmmapped.xml zzipfseeko.xml
506         : "unix man format of the manpages - goes to ../share/man/man3"
507         @ if test "$(XMLTO)" != ":" \
508         ; then echo going to regenerate "$@" in subdir "'"man"'" \
509         ; echo 'test ! -d man3 || rm man3/* ; test -d man3 || mkdir man3' \
510         ;       test ! -d man3 || rm man3/* ; test -d man3 || mkdir man3  \
511         ; echo '$(XMLTO) -o man3 man zziplib.xml' \
512         ;       $(XMLTO) -o man3 man zziplib.xml  \
513         ; echo '$(XMLTO) -o man3 man zzipmmapped.xml' \
514         ;       $(XMLTO) -o man3 man zzipmmapped.xml  \
515         ; echo '$(XMLTO) -o man3 man zzipfseeko.xml' \
516         ;       $(XMLTO) -o man3 man zzipfseeko.xml  \
517         ; echo 'ar qc "$@" man3/*.3' \
518         ;       ar qc "$@" man3/*.3  \
519         ; echo '$(DELETE); rm man3/*.3 ; rmdir man3' \
520         ;       $(DELETE); rm man3/*.3 ; rmdir man3  \
521         ; fi ; true
522         @ if test -s $@ \
523         ; then echo cp $@ zziplib-$@ "(saved)"; cp $@ zziplib-$@ \
524         ; else echo cp $(srcdir)/zziplib-$@ $@; cp $(srcdir)/zziplib-$@ $@ \
525         ; fi
526
527 zziplib-htmpages.ar : htmpages.ar
528         test -s "$@" || test -s "$(srcdir)/$@"
529 htmpages.ar : zziplib.xml zzipmmapped.xml zzipfseeko.xml zziplib-manpages.dbk
530         : "html format of the manpages - put into zziplib/htdocs/man/*"
531         @ if test "$(XMLTO)" != ":" \
532         ; then echo going to regenerate "$@" in subdir "'"html"'" \
533         ; echo 'test ! -d html || rm /* ; test -d html || mkdir html' \
534         ;       test ! -d html || rm html/* ; test -d html || mkdir html  \
535         ; echo 'cp $(srcdir)/zziplib-manpages.dbk zziplib-manpages.xml' \
536         ;       cp $(srcdir)/zziplib-manpages.dbk zziplib-manpages.xml \
537         ; echo '$(XMLTO) -o html html zziplib-manpages.xml | tee written.lst' \
538         ;       $(XMLTO) -o html html zziplib-manpages.xml | tee written.lst \
539         ; echo 'ar qc $@ html/*.*' \
540         ;       ar qc $@ html/*.*  \
541         ; echo '$(DELETE); rm html/*.* ; rmdir html' \
542         ;       $(DELETE); rm html/*.* ; rmdir html  \
543         ; fi ; true
544         @ if test -s $@ \
545         ; then echo cp $@ zziplib-$@ "(saved)"; cp $@ zziplib-$@ \
546         ; else echo cp $(srcdir)/zziplib-$@ $@; cp $(srcdir)/zziplib-$@ $@ \
547         ; fi
548
549 install-man3 : manpages.ar
550         $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
551         P=`pwd` ; cd $(DESTDIR)$(mandir)/man3 \
552         && ar x $$P/manpages.ar && chmod 664 *
553
554 unpack : manpages.ar htmpages.ar
555         (rm -rf _htm && mkdir _htm && cd _htm && ar x ../htmpages.ar)
556         (rm -rf _man && mkdir _man && cd _man && ar x ../manpages.ar)
557 clean-unpack : 
558         rm -rf _htm
559         rm -rf _man
560
561 $(PACKAGE)-doc.omf : $(spec_file) Makefile
562         : "OMF for the html documentation - a copy of zziplib.sf.net"
563         echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>' >$@
564         echo '<omf><resource><creator> Guido Draheim </creator>' >>$@
565         grep Packager $(FROMSPEC) | sed -e 's,Packager *: *, <maintainer>,' \
566                                     -e '/<maintainer>/s,$$,</maintainer>,' >>$@
567         grep Summary  $(FROMSPEC) | sed -e 's,Summary *: *, <title>,' \
568                        -e '/<title>/s,$$,</title>,' >>$@
569         echo ' <date>'$(DATESPEC)'</date>' >>$@
570         echo ' <version identifier="$(VERSION)" date="'$(DATESPEC)'"/>' >>$@
571         grep Group  $(FROMSPEC) | sed -e 's,Group *: *, <subject category=",' \
572                         -e 's,/,|,g' -e '/<subject/s,$$," />,' >>$@
573         echo ' <format mime="text/html"/>' >>$@
574         pkgdocdir=`echo "$(pkgdocdir)" | sed -e "s|/[a-z][a-z]*/[.][.]/|/|"` \
575         echo ' <identifier url="file:'"$$pkgdocdir"'/zzip-index.html"/>' >>$@
576         echo ' <language code="C"/>' >>$@
577         echo ' <relation seriesid="$(DOCSERIES)"/>' >>$@
578         echo ' <rights type="GNU LGPL" holder="Guido Draheim"' >>$@
579         pkgdocdir=`echo "$(pkgdocdir)" | sed -e "s|/[a-z][a-z]*/[.][.]/|/|"` \
580         echo '         license="'"$$pkgdocdir"')/COPYING.LIB"/>' >>$@
581         echo '</resource></omf>' >>$@
582 $(PACKAGE)-man.omf : $(PACKAGE)-doc.omf $(PACKAGE).xml
583         : "OMF for functions reference - the docbook master of the manpages"
584         sed -e 's,"text/html","text/xml" dtd="$(DOCBOOKDTD)",' \
585             -e 's,</title>, (Function Reference)</title>,' \
586             -e 's,/index.html,/xml/manpages.xml,' \
587             -e 's,$(DOCSERIES),$(MANSERIES),' $(PACKAGE)-doc.omf > $@
588         test -s $@ || rm $@
589
590 omf : $(PACKAGE)-doc.omf $(PACKAGE)-man.omf 
591 install-omf : omf zziplib.xml zzipmmapped.xml zzipfseeko.xml
592         : "not installed by default anymore - 'make install-doc' has one OMF"
593         $(mkinstalldirs) $(DESTDIR)$(pkgomfdir)
594         $(INSTALL_DATA) $(PACKAGE)-doc.omf $(DESTDIR)$(pkgomfdir)/
595         $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)
596         $(INSTALL_DATA) $(srcdir)/zziplib-manpages.xml \
597                $(DESTDIR)$(pkgdocdir)/xml/manpages.xml
598         $(INSTALL_DATA)  zziplib.xml zzipmmapped.xml zzipfseeko.xml \
599                $(DESTDIR)$(pkgdocdir)/xml/
600         $(INSTALL_DATA) $(PACKAGE)-man.omf $(DESTDIR)$(pkgomfdir)/
601         - test ".$(DESTDIR)" != "." || scrollkeeper-update -v
602
603 # ----------------------------------------------- mksite.sh for the main html
604 site.htm : body.htm
605         cp $(srcdir)/body.htm site.htm
606 site.html : body.htm site.htm mksite.sh $(htm_FILES) $(htms_FILES)
607         cp $(srcdir)/body.htm site.htm
608         perl $(srcdir)/mksite.pl $(mksite_sh_args) site.htm || \
609         $(SHELL) $(srcdir)/mksite.sh $(mksite_sh_args) site.htm
610
611 changes.htm : $(top_srcdir)/ChangeLog Makefile 
612         echo "<pre>" > $@ ; cat $(top_srcdir)/ChangeLog \
613         | sed -e "s,\\&,\\&amp\\;,g" \
614         -e "s,<,\\&lt\\;,g" -e "s,>,\\&gt\\;,g" \
615         -e "/^[A-Z].*[12][09][09][09]/s,\\(.*\\),<b>&</b>," \
616         -e "/^[0-9]/s,\\(.*\\),<b>&</b>," >> $@ ; echo "</pre>" >>$@
617
618 # ----------------------------------------------- create pdf via docbook xml
619 # sorry, the xmlto / docbook-xsl are too broken to rebuild the PDF anymore
620
621 zzip.xml : $(htm_FILES) zziplib.xml make-dbk.pl
622         : '@PERL@ make-dbk.pl $(htm_FILES) zziplib.xml >$@'
623         @PYTHON@ $(srcdir)/zzipdoc/htm2dbk.py $(htm_FILES) zziplib.xml >$@
624         test -s "$@" || rm "$@"
625
626 zzip.html : zzip.xml
627         xmlto html-nochunks zzip.xml
628 zzip.pdf  : zzip.xml
629         xmlto pdf zzip.xml
630
631 zziplib.pdf : $(htm_FILES) $(srcdir)/zziplib-master.dbk mksite.pl
632         cp $(srcdir)/zziplib-master.dbk zziplib.docbook
633         xmlto pdf zziplib.docbook ; rm zziplib.docbook
634         test -s zziplib.pdf
635
636 pdfs : zziplib.pdf
637 # Tell versions [3.59,3.63) of GNU make to not export all variables.
638 # Otherwise a system limit (for SysV at least) may be exceeded.
639 .NOEXPORT: