~ubuntu-branches/ubuntu/dapper/zziplib/dapper

« back to all changes in this revision

Viewing changes to docs/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno
  • Date: 2004-03-29 12:41:28 UTC
  • Revision ID: james.westby@ubuntu.com-20040329124128-hf9y5elywpavuh5y
Tags: upstream-0.10.82
ImportĀ upstreamĀ versionĀ 0.10.82

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Makefile.in generated automatically by automake 1.5 from Makefile.am.
 
2
 
 
3
# Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
 
4
# Free Software Foundation, Inc.
 
5
# This Makefile.in is free software; the Free Software Foundation
 
6
# gives unlimited permission to copy and/or distribute it,
 
7
# with or without modifications, as long as this notice is preserved.
 
8
 
 
9
# This program is distributed in the hope that it will be useful,
 
10
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
 
11
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 
12
# PARTICULAR PURPOSE.
 
13
 
 
14
@SET_MAKE@
 
15
 
 
16
SHELL = @SHELL@
 
17
 
 
18
srcdir = @srcdir@
 
19
top_srcdir = @top_srcdir@
 
20
VPATH = @srcdir@
 
21
prefix = @prefix@
 
22
exec_prefix = @exec_prefix@
 
23
 
 
24
bindir = @bindir@
 
25
sbindir = @sbindir@
 
26
libexecdir = @libexecdir@
 
27
datadir = @datadir@
 
28
sysconfdir = @sysconfdir@
 
29
sharedstatedir = @sharedstatedir@
 
30
localstatedir = @localstatedir@
 
31
libdir = @libdir@
 
32
infodir = @infodir@
 
33
mandir = @mandir@
 
34
includedir = @includedir@
 
35
oldincludedir = /usr/include
 
36
pkgdatadir = $(datadir)/@PACKAGE@
 
37
pkglibdir = $(libdir)/@PACKAGE@
 
38
pkgincludedir = $(includedir)/@PACKAGE@
 
39
top_builddir = ..
 
40
 
 
41
ACLOCAL = @ACLOCAL@
 
42
AUTOCONF = @AUTOCONF@
 
43
AUTOMAKE = @AUTOMAKE@
 
44
AUTOHEADER = @AUTOHEADER@
 
45
 
 
46
INSTALL = @INSTALL@
 
47
INSTALL_PROGRAM = @INSTALL_PROGRAM@
 
48
INSTALL_DATA = @INSTALL_DATA@
 
49
INSTALL_SCRIPT = @INSTALL_SCRIPT@
 
50
INSTALL_HEADER = $(INSTALL_DATA)
 
51
transform = @program_transform_name@
 
52
NORMAL_INSTALL = :
 
53
PRE_INSTALL = :
 
54
POST_INSTALL = :
 
55
NORMAL_UNINSTALL = :
 
56
PRE_UNINSTALL = :
 
57
POST_UNINSTALL = :
 
58
build_alias = @build_alias@
 
59
build_triplet = @build@
 
60
host_alias = @host_alias@
 
61
host_triplet = @host@
 
62
target_alias = @target_alias@
 
63
target_triplet = @target@
 
64
AMTAR = @AMTAR@
 
65
AS = @AS@
 
66
AWK = @AWK@
 
67
CC = @CC@
 
68
CONFIG_FILES = @CONFIG_FILES@
 
69
DEPDIR = @DEPDIR@
 
70
DLLTOOL = @DLLTOOL@
 
71
ECHO = @ECHO@
 
72
EXEEXT = @EXEEXT@
 
73
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
 
74
LARGEFILE_CFLAGS = @LARGEFILE_CFLAGS@
 
75
LIBTOOL = @LIBTOOL@
 
76
LN_S = @LN_S@
 
77
LTREL = @LTREL@
 
78
LTVER = @LTVER@
 
79
MAINT = @MAINT@
 
80
MAJOR = @MAJOR@
 
81
MICRO = @MICRO@
 
82
MINOR = @MINOR@
 
83
MKZIP = @MKZIP@
 
84
OBJDUMP = @OBJDUMP@
 
85
OBJEXT = @OBJEXT@
 
86
PACKAGE = @PACKAGE@
 
87
PATCH = @PATCH@
 
88
PERL = @PERL@
 
89
PHP = @PHP@
 
90
PKG_CONFIG = @PKG_CONFIG@
 
91
RANLIB = @RANLIB@
 
92
RESOLVES = @RESOLVES@
 
93
SED = @SED@
 
94
STRIP = @STRIP@
 
95
THREAD_SAFE = @THREAD_SAFE@
 
96
VERSION = @VERSION@
 
97
XMLTO = @XMLTO@
 
98
ZIPTESTS = @ZIPTESTS@
 
99
ZLIB_INCL = @ZLIB_INCL@
 
100
ZLIB_LDIR = @ZLIB_LDIR@
 
101
ZLIB_VERSION = @ZLIB_VERSION@
 
102
ZZIPLIB_LDFLAGS = @ZZIPLIB_LDFLAGS@
 
103
am__include = @am__include@
 
104
am__quote = @am__quote@
 
105
docdir = @docdir@
 
106
install_sh = @install_sh@
 
107
SDL = @top_srcdir@/SDL
 
108
 
 
109
AUTOMAKE_OPTIONS = 1.4 foreign
 
110
AUTOTOOL_VERSION = autoconf-2.52 automake-1.5 libtool-1.4.2
 
111
 
 
112
doc_FILES = README.MSVC6 README.SDL COPYING.ZZIP COPYING.LIB COPYING.ZLIB \
 
113
        zziplib.html staticlink.txt
 
114
 
 
115
htm_FILES = zzip-index.htm zzip-zip.htm zzip-file.htm zzip-sdl-rwops.htm \
 
116
            zzip-extio.htm zzip-xor.htm zzip-api.htm  zzip-parse.htm \
 
117
            future.htm configs.htm sfx-make.htm history.htm referentials.htm  
 
118
 
 
119
SDL_RWOPS = $(SDL)/SDL_rwops_zzcat.c \
 
120
            $(SDL)/SDL_rwops_zzip.c $(SDL)/SDL_rwops_zzip.h
 
121
 
 
122
changelog = @top_srcdir@/ChangeLog
 
123
 
 
124
EXTRA_DIST = zzip-doc.pl zzip-doc.php $(doc_FILES) $(htm_FILES) $(SDL_RWOPS) \
 
125
             make-doc.pl make-dbk.pl  manpages.ar htmpages.ar      body.htm
 
126
 
 
127
CLEANFILES = *.pc *.omf
 
128
DISTCLEANFILES = zziplib.spec 
 
129
MAINTAINERCLEANFILES = manpages.ar htmpages.ar *.html *.xml
 
130
 
 
131
omfdir = ${datadir}/omf
 
132
pkgomfdir = ${omfdir}/${PACKAGE}
 
133
SFNETDIR = /groups/z/zz/zziplib/htdocs
 
134
SFNETDOC = ${datadir}${SFNETDIR}
 
135
pkgdocdir = ${datadir}${SFNETDIR}
 
136
bins = @top_srcdir@/bins
 
137
DOCEXAMPLES = $(bins)/zzdir.c $(bins)/zzcat.c \
 
138
              $(bins)/zzobfuscated.c $(bins)/zziptest.c \
 
139
              $(bins)/zzxordir.c $(bins)/zzxorcat.c \
 
140
              $(bins)/zzxorcopy.c        $(SDL_RWOPS)
 
141
 
 
142
 
 
143
# -------------------------------------------------------------------
 
144
spec_file = $(top_srcdir)/$(PACKAGE).spec
 
145
DOCSERIES = 775fb73e-1874-11d7-93e9-e18cd7ea3c2e
 
146
FROMSPEC = $(spec_file) | head -1 | sed -e 's,<,\&lt;,g' -e 's,>,\&gt;,g'
 
147
DATESPEC = `date +%Y-%m-%d`
 
148
 
 
149
DOCBOOKDTD = -//OASIS/DTD Docbook V4.1.2//EN
 
150
MANSERIES = a302c642-1888-11d7-86f6-ba4b52ef847d
 
151
 
 
152
# -------------------------------------------------------------------
 
153
datehead = <hr><table border="0" width="100%"><tr><td> \
 
154
    <a href="mailto:guidod@gmx.de?subject=$(PACKAGE):">guidod@gmx.de</a> \
 
155
    </td><td align="right">
 
156
 
 
157
datetail = </td></tr></table>
 
158
borderhead = <table cellpadding="10"><tr><td>
 
159
bordertail = </td></tr></table>
 
160
subdir = docs
 
161
mkinstalldirs = $(SHELL) $(top_srcdir)/uses/mkinstalldirs
 
162
CONFIG_HEADER = $(top_builddir)/config.h
 
163
CONFIG_CLEAN_FILES =
 
164
DIST_SOURCES =
 
165
DIST_COMMON = COPYING.LIB Makefile.am Makefile.in
 
166
all: all-am
 
167
 
 
168
.SUFFIXES:
 
169
 
 
170
mostlyclean-libtool:
 
171
        -rm -f *.lo
 
172
 
 
173
clean-libtool:
 
174
        -rm -rf .libs _libs
 
175
 
 
176
distclean-libtool:
 
177
        -rm -f libtool
 
178
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am  $(top_srcdir)/configure.ac $(ACLOCAL_M4)
 
179
        cd $(top_srcdir) && \
 
180
          $(AUTOMAKE) --foreign  docs/Makefile
 
181
Makefile: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.in  $(top_builddir)/config.status
 
182
        cd $(top_builddir) && \
 
183
          CONFIG_HEADERS= CONFIG_LINKS= \
 
184
          CONFIG_FILES=$(subdir)/$@ $(SHELL) ./config.status
 
185
uninstall-info-am:
 
186
tags: TAGS
 
187
TAGS:
 
188
 
 
189
 
 
190
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
 
191
 
 
192
top_distdir = ..
 
193
distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
 
194
 
 
195
distdir: $(DISTFILES)
 
196
        $(mkinstalldirs) $(distdir)/$(SDL)
 
197
        @for file in $(DISTFILES); do \
 
198
          if test -f $$file; then d=.; else d=$(srcdir); fi; \
 
199
          dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
 
200
          if test "$$dir" != "$$file" && test "$$dir" != "."; then \
 
201
            $(mkinstalldirs) "$(distdir)/$$dir"; \
 
202
          fi; \
 
203
          if test -d $$d/$$file; then \
 
204
            cp -pR $$d/$$file $(distdir) \
 
205
            || exit 1; \
 
206
          else \
 
207
            test -f $(distdir)/$$file \
 
208
            || cp -p $$d/$$file $(distdir)/$$file \
 
209
            || exit 1; \
 
210
          fi; \
 
211
        done
 
212
check-am: all-am
 
213
check: check-am
 
214
all-am: Makefile
 
215
 
 
216
installdirs:
 
217
 
 
218
install: install-am
 
219
install-exec: install-exec-am
 
220
install-data: install-data-am
 
221
uninstall: uninstall-am
 
222
 
 
223
install-am: all-am
 
224
        @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
 
225
 
 
226
installcheck: installcheck-am
 
227
install-strip:
 
228
        $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
 
229
          `test -z '$(STRIP)' || \
 
230
            echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
 
231
mostlyclean-generic:
 
232
 
 
233
clean-generic:
 
234
        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
 
235
 
 
236
distclean-generic:
 
237
        -rm -f Makefile $(CONFIG_CLEAN_FILES) stamp-h stamp-h[0-9]*
 
238
        -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
 
239
 
 
240
maintainer-clean-generic:
 
241
        @echo "This command is intended for maintainers to use"
 
242
        @echo "it deletes files that may require special tools to rebuild."
 
243
        -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
 
244
clean: clean-am
 
245
 
 
246
clean-am: clean-generic clean-libtool mostlyclean-am
 
247
 
 
248
distclean: distclean-am
 
249
 
 
250
distclean-am: clean-am distclean-generic distclean-libtool
 
251
 
 
252
dvi: dvi-am
 
253
 
 
254
dvi-am:
 
255
 
 
256
info: info-am
 
257
 
 
258
info-am:
 
259
 
 
260
install-data-am:
 
261
 
 
262
install-exec-am:
 
263
 
 
264
install-info: install-info-am
 
265
 
 
266
install-man:
 
267
 
 
268
installcheck-am:
 
269
 
 
270
maintainer-clean: maintainer-clean-am
 
271
 
 
272
maintainer-clean-am: distclean-am maintainer-clean-generic
 
273
 
 
274
mostlyclean: mostlyclean-am
 
275
 
 
276
mostlyclean-am: mostlyclean-generic mostlyclean-libtool
 
277
 
 
278
uninstall-am: uninstall-info-am
 
279
 
 
280
.PHONY: all all-am check check-am clean clean-generic clean-libtool \
 
281
        distclean distclean-generic distclean-libtool distdir dvi \
 
282
        dvi-am info info-am install install-am install-data \
 
283
        install-data-am install-exec install-exec-am install-info \
 
284
        install-info-am install-man install-strip installcheck \
 
285
        installcheck-am installdirs maintainer-clean \
 
286
        maintainer-clean-generic mostlyclean mostlyclean-generic \
 
287
        mostlyclean-libtool uninstall uninstall-am uninstall-info-am
 
288
 
 
289
 
 
290
default : doc
 
291
clean-doc clean-docs : clean-unpack
 
292
        - rm $(DISTCLEANFILES) 
 
293
        - rm $(MAINTAINERCLEANFILES)
 
294
 
 
295
# -------------------------------------------------------------------
 
296
zziplib.spec : @top_srcdir@/$(PACKAGE).spec
 
297
        @ $(LN_S) $? $@ # the two zzip-doc.* will grep thru zziplib.spec
 
298
doc  : $(doc_FILES) $(htm_FILES:.htm=.html)
 
299
docs : doc manpages.ar htmpages.ar
 
300
zziplib0.html : zziplib0.xml
 
301
zziplib0.xml : zziplib.spec @srcdir@/Makefile.am \
 
302
                 $(srcdir)/make-doc.pl @top_srcdir@/zzip/*.c
 
303
        - @PERL@ $(srcdir)/make-doc.pl @top_srcdir@/zzip/*.c \
 
304
          "suffix=0" "package=$(PACKAGE)" "version=$(VERSION)" \
 
305
          "mainheader=zzip/zzip.h" "exported=<zzip/zzip.h> // or <zziplib.h>" \
 
306
          "docbookfile=$@" 
 
307
        - test -s $@
 
308
zziplib1.html : zziplib1.xml
 
309
zziplib1.xml : zziplib.spec @srcdir@/Makefile.am \
 
310
                 $(srcdir)/zzip-doc.pl @top_srcdir@/zzip/*.c
 
311
        - @PERL@ $(srcdir)/zzip-doc.pl @top_srcdir@/zzip/*.c
 
312
        - test -f zziplib1.docbook && mv zziplib1.docbook $@ ; test -s $@
 
313
# zziplib2.html : zziplib2.xml
 
314
# zziplib2.xml : zziplib.spec @srcdir@/Makefile.am \
 
315
#                    $(srcdir)/zzip-doc.php @top_srcdir@/zzip/*.c
 
316
#       - @PHP@ -q $(srcdir)/zzip-doc.php @top_srcdir@/zzip/*.c
 
317
#       - test -f zziplib2.docbook && mv zziplib2.docbook $@ ; test -s $@
 
318
zziplib.html :    zziplib1.html zziplib0.html
 
319
        - test -s zziplib1.html && cp zziplib1.html zziplib.html
 
320
        - test -s zziplib0.html && cp zziplib0.html zziplib.html
 
321
        test -s $@
 
322
zziplib.xml :     zziplib1.xml zziplib0.xml
 
323
        - test -s zziplib1.xml && cp zziplib1.xml zziplib.xml
 
324
        - test -s zziplib0.xml && cp zziplib0.xml zziplib.xml
 
325
        test -s $@ || rm $@
 
326
 
 
327
install-docu: $(doc_FILES) $(htm_FILES:.htm=.html) $(PACKAGE)-doc.omf
 
328
        $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)
 
329
        for i in $(htm_FILES) ; do cat $${i}l \
 
330
        | sed -e 's:--START-->:-- :' -e 's:<!--ENDS--: --:' \
 
331
        -e "s:\\(href=\"[^/\"]*\\)[.]html\":\\1.htm\":" \
 
332
        -e "s:\\(href=\"[^/\"]*\\)[.]html\#:\\1.htm\#:" \
 
333
        > $(DESTDIR)$(pkgdocdir)/$$i ; done
 
334
        @ for i in $(doc_FILES) $(DOCEXAMPLES) $(srcdir)/README.* \
 
335
        ; do $(INSTALL_DATA) `test -f $$i || echo $(srcdir)/`$$i  \
 
336
          $(DESTDIR)$(pkgdocdir) ; done
 
337
        (cd $(DESTDIR)$(pkgdocdir) && ln -sf zziplib.html zziplib.htm)
 
338
        $(mkinstalldirs) $(DESTDIR)$(pkgomfdir)
 
339
        $(INSTALL_DATA) $(PACKAGE)-doc.omf $(DESTDIR)$(pkgomfdir)/
 
340
        - test ".$(DESTDIR)" != "." || scrollkeeper-update
 
341
 
 
342
install-sfnet: $(doc_FILES) $(htm_FILES:.htm=.html) htmpages.ar
 
343
        $(mkinstalldirs) $(DESTDIR)$(SFNETDOC)
 
344
        $(INSTALL_DATA) $(htm_FILES:.htm=.html) $(DESTDIR)$(SFNETDOC)
 
345
        for i in $(doc_FILES) $(DOCEXAMPLES) $(changelog) $(srcdir)/README.* \
 
346
        ; do $(INSTALL_DATA) `test -f $$i || echo $(srcdir)/`$$i \
 
347
          $(DESTDIR)$(SFNETDOC) ; done
 
348
        (cd $(DESTDIR)$(SFNETDOC) && ln -sf zzip-index.html index.html)
 
349
        $(mkinstalldirs) $(DESTDIR)$(SFNETDOC)/man
 
350
        (test -f htmpages.ar || cd "$srcdir" ; P=`pwd` \
 
351
        ; cd $(DESTDIR)$(SFNETDOC)/man && ar x $$P/htmpages.ar)
 
352
 
 
353
install-doc : install-docu install-sfnet
 
354
 
 
355
# --------------------------------------------------------------------
 
356
man manpages : manpages.ar
 
357
htm htmpages : htmpages.ar
 
358
 
 
359
manpages.ar : zziplib.xml
 
360
        @ if test "$(XMLTO)" = ":" \
 
361
        ; then echo no xmlto found - could not regenerate "$@" - skipped \
 
362
        ; echo just touching the output file "$@" ; touch "$@" \
 
363
        ; else echo going to regenerate "$@" in subdir "'"man"'" \
 
364
        ; echo 'test ! -d man || rm man/* ; test -d man || mkdir man' \
 
365
        ;       test ! -d man || rm man/* ; test -d man || mkdir man  \
 
366
        ; echo '(cd man && xmlto man ../zziplib.xml)' \
 
367
        ;       (cd man && xmlto man ../zziplib.xml)  \
 
368
        ; echo 'test ! -f $@ || mv $@ $@.old' \
 
369
        ;       test ! -f $@ || mv $@ $@.old  \
 
370
        ; echo '(cd man && ar qc ../$@ *.3)' \
 
371
        ;       (cd man && ar qc ../$@ *.3)  \
 
372
        ; echo '(rm man/*.3 ; rmdir man)' \
 
373
        ;       (rm man/*.3 ; rmdir man)  \
 
374
        ; fi ; test -s $@ || mv $@.old $@
 
375
 
 
376
htmpages.ar : zziplib.xml
 
377
        @ if test "$(XMLTO)" = ":" \
 
378
        ; then echo no xmlto found - could not regenerate "$@" - skipped \
 
379
        ; echo just touching the output file "$@" ; touch "$@" \
 
380
        ; else echo going to regenerate "$@" in subdir "'"man"'" \
 
381
        ; echo 'test ! -d man || rm /* ; test -d man || mkdir man' \
 
382
        ;       test ! -d man || rm man/* ; test -d man || mkdir man  \
 
383
        ; echo '(cd man && xmlto html ../zziplib.xml | tee written.lst)' \
 
384
        ;       (cd man && xmlto html ../zziplib.xml | tee written.lst)  \
 
385
        ; echo 'test ! -f $@ || mv $@ $@.old' \
 
386
        ;       test ! -f $@ || mv $@ $@.old  \
 
387
        ; echo '(cd man && ar qc ../$@ *.*)' \
 
388
        ;       (cd man && ar qc ../$@ *.*)  \
 
389
        ; echo '(rm man/*.* ; rmdir man)' \
 
390
        ;       (rm man/*.* ; rmdir man)  \
 
391
        ; fi ; test -s $@ || mv $@.old $@
 
392
 
 
393
install-man3 : manpages.ar
 
394
        $(mkinstalldirs) $(DESTDIR)$(mandir)/man3
 
395
        P=`pwd` ; cd $(DESTDIR)$(mandir)/man3 \
 
396
        && ar x $$P/manpages.ar && chmod 664 *
 
397
 
 
398
unpack : manpages.ar htmpages.ar
 
399
        (rm -rf _htm && mkdir _htm && cd _htm && ar x ../htmpages.ar)
 
400
        (rm -rf _man && mkdir _man && cd _man && ar x ../manpages.ar)
 
401
clean-unpack : 
 
402
        rm -rf _htm
 
403
        rm -rf _man
 
404
 
 
405
$(PACKAGE)-doc.omf : $(spec_file) Makefile
 
406
        echo '<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>' >$@
 
407
        echo '<omf><resource><creator> Guido Draheim </creator>' >>$@
 
408
        grep Packager $(FROMSPEC) | sed -e 's,Packager *: *, <maintainer>,' \
 
409
                                    -e '/<maintainer>/s,$$,</maintainer>,' >>$@
 
410
        grep Summary  $(FROMSPEC) | sed -e 's,Summary *: *, <title>,' \
 
411
                       -e '/<title>/s,$$,</title>,' >>$@
 
412
        echo ' <date>'$(DATESPEC)'</date>' >>$@
 
413
        echo ' <version identifier="$(VERSION)" date="'$(DATESPEC)'"/>' >>$@
 
414
        grep Group  $(FROMSPEC) | sed -e 's,Group *: *, <subject category=",' \
 
415
                        -e 's,/,|,g' -e '/<subject/s,$$," />,' >>$@
 
416
        echo ' <format mime="text/html"/>' >>$@
 
417
        echo ' <identifier url="file:$(pkgdocdir)/zzip-index.htm"/>' >>$@
 
418
        echo ' <language code="C"/>' >>$@
 
419
        echo ' <relation seriesid="$(DOCSERIES)"/>' >>$@
 
420
        echo ' <rights type="GNU LGPL" holder="Guido Draheim"' >>$@
 
421
        echo '         license="$(pkgdocdir)/COPYING.LIB"/>' >>$@
 
422
        echo '</resource></omf>' >>$@
 
423
$(PACKAGE)-man.omf : $(PACKAGE)-doc.omf $(PACKAGE).xml
 
424
        sed -e 's,"text/html","text/xml" dtd="$(DOCBOOKDTD)",' \
 
425
            -e 's,</title>, (Function Reference)</title>,' \
 
426
            -e 's,/index.html,/manpages.xml,' \
 
427
            -e 's,$(DOCSERIES),$(MANSERIES),' $(PACKAGE)-doc.omf > $@
 
428
        test -s $@ || rm $@
 
429
 
 
430
omf : $(PACKAGE)-doc.omf $(PACKAGE)-man.omf $(PACKAGE).xml
 
431
install-omf : $(PACKAGE)-doc.omf $(PACKAGE)-man.omf $(PACKAGE).xml
 
432
        $(mkinstalldirs) $(DESTDIR)$(pkgomfdir)
 
433
        $(INSTALL_DATA) $(PACKAGE)-doc.omf $(DESTDIR)$(pkgomfdir)/
 
434
        $(mkinstalldirs) $(DESTDIR)$(pkgdocdir)
 
435
        $(INSTALL_DATA) $(PACKAGE).xml $(DESTDIR)$(pkgdocdir)/manpages.xml
 
436
        $(INSTALL_DATA) $(PACKAGE)-man.omf $(DESTDIR)$(pkgomfdir)/
 
437
        - test ".$(DESTDIR)" != "." || scrollkeeper-update -v
 
438
 
 
439
x : $(htm_FILES:.htm=.html)
 
440
$(htm_FILES:.htm=.html) : body.htm
 
441
%.html : %.htm
 
442
        @ title=`grep '<h2>' $< | sed -e 's:</h2>.*::' -e 's:<[^<>]*>::g'` \
 
443
        ; D=$(DATESPEC) ; cat body.htm \
 
444
        | sed -e "s/<!--VERSION-->/$(VERSION)/" \
 
445
        | sed -e "s/<!--DATE-->/$$D/" \
 
446
        | sed -e "s:</title>: - $$title</title>:" \
 
447
        | sed -e "/$@.>/s:\\([^<>]*\\)</a>:<b>\\1</b></a>:" \
 
448
        > $@
 
449
        @ echo $< '>>' $@; cat $< | sed -e "s/<!--VERSION-->/$(VERSION)/" \
 
450
        -e "s:</h2>\\(.*\\):</h2></td><td><i>\\1</i></td></tr></table>:" \
 
451
        -e 's:<h2>:<table width="100%"><tr valign="bottom"><td><h2>:' \
 
452
        -e 's:<td><i>:<td align="right"><br> <i>:' \
 
453
        -e 's:<P>:<p class="justify"><span class="justify">:g' \
 
454
        -e 's:</P>:</span></p>:g' \
 
455
        -e 's,<date>,<!--DATE: ,' -e 's,</date>, -->,' \
 
456
        -e 's,<!--border-->,$(borderhead)<!--BORDER-->,' >>$@
 
457
        @ if grep '<!--BORDER-->' $@ >/dev/null ; then : \
 
458
        ; echo "$(bordertail)<!--/BORDER-->" >>$@ ; fi
 
459
        @ D=`grep '<!--DATE:' $@ | sed -e 's,.*<!--DATE: *,,' -e 's, *-->,,'` \
 
460
        ; if test ".$$D" != "." ; then echo '$(datehead)' >>$@ \
 
461
        ; echo "$$D" >> $@ ; echo "$(datetail)" >> $@ ; fi
 
462
        @ echo "</td></tr></table></body></html>" >>$@
 
463
 
 
464
zzip.xml : $(htm_FILES) zziplib.xml make-dbk.pl
 
465
        @PERL@ make-dbk.pl $(htm_FILES) zziplib.xml >$@
 
466
        test -s "$@" || rm "$@"
 
467
 
 
468
zzip.html : zzip.xml
 
469
        xmlto html-nochunks zzip.xml
 
470
zzip.pdf  : zzip.xml
 
471
        xmlto pdf zzip.xml
 
472
# Tell versions [3.59,3.63) of GNU make to not export all variables.
 
473
# Otherwise a system limit (for SysV at least) may be exceeded.
 
474
.NOEXPORT: