~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to docs/Makefile.fpc

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2005-05-30 11:59:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050530115910-x5pbzm4qqta4i94h
Tags: 2.0.0-2
debian/fp-compiler.postinst.in: forgot to reapply the patch that
correctly creates the slave link to pc(1).  (Closes: #310907)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
#   $Id: Makefile.fpc,v 1.14 2005/05/15 12:10:00 peter Exp $
 
3
#   This file is part of the Free Pascal run time library.
 
4
#   Copyright (c) 1996-98 by Michael van Canneyt
 
5
#
 
6
#   Makefile for the Free Pascal Documentation
 
7
#
 
8
#   See the file COPYING.FPC, included in this distribution,
 
9
#   for details about the copyright.
 
10
#
 
11
#   This program is distributed in the hope that it will be useful,
 
12
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
13
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 
14
#
 
15
 
 
16
[package]
 
17
name=fpc
 
18
version=2.0.0
 
19
 
 
20
[require]
 
21
nortl=y
 
22
 
 
23
[install]
 
24
#fpcpackage=y
 
25
 
 
26
[default]
 
27
fpcdir=..
 
28
rule=help
 
29
 
 
30
[rules]
 
31
# Debugging the install, that will only copy the .tex to index.html
 
32
# so a make html and make install goes quickly
 
33
#INSTALLDEBUG=1
 
34
 
 
35
# Which docs to build by default
 
36
ifndef DOCS
 
37
DOCS = user rtl ref prog fpdoc chart
 
38
endif
 
39
 
 
40
# Can be 'report','book' for pdf/ps, html use their own preamble file
 
41
PREAMBLETYPE = report
 
42
 
 
43
# Locate FPDoc
 
44
ifndef CROSSCOMPILE
 
45
ifndef FPDOC
 
46
ifneq ($(wildcard ../utils/fpdoc/fpdoc),)
 
47
FPDOC=../utils/fpdoc/fpdoc
 
48
else
 
49
FPDOC=fpdoc
 
50
endif
 
51
endif
 
52
endif
 
53
 
 
54
ifndef FPCSRCDIR
 
55
FPCSRCDIR=..
 
56
endif
 
57
 
 
58
# Use Ascii mode ? (i.e. no pics in produced HTML ?)
 
59
ifndef ASCIIMODE
 
60
ASCIIMODE=NO
 
61
endif
 
62
 
 
63
 
 
64
#######################################################################
 
65
# LaTeX Program definitions
 
66
#######################################################################
 
67
 
 
68
# Latex itself
 
69
ifndef LATEX
 
70
LATEX = latex
 
71
endif
 
72
# DVI to PS converter
 
73
ifndef DVIPS
 
74
DVIPS=dvips
 
75
endif
 
76
# DVI to TXT converter
 
77
ifndef DVITXT
 
78
DVITXT=dvi2tty -w132
 
79
endif
 
80
# PDF converter
 
81
ifndef PDFLATEX
 
82
PDFLATEX=pdflatex
 
83
endif
 
84
# Makeindex programma
 
85
ifndef MAKEINDEX
 
86
MAKEINDEX=makeindex
 
87
endif
 
88
 
 
89
#######################################################################
 
90
# Latex2html conversion.
 
91
#######################################################################
 
92
ifdef USEL2H
 
93
# Command to use.
 
94
ifndef LATEX2HTML
 
95
LATEX2HTML = /usr/bin/latex2html
 
96
endif
 
97
# Default options for converter
 
98
ifndef LATEX2HTMLOPTS
 
99
LATEX2HTMLOPTS = -no_reuse -up_url "../fpctoc.html"\
 
100
                 -up_title "Free Pascal manuals"\
 
101
                 -html_version 4.0 -split 3
 
102
endif
 
103
ifeq ($(ASCIIMODE),YES)
 
104
LATEX2HTMLOPTS+=-ascii_mode
 
105
endif
 
106
endif # USEL2H
 
107
 
 
108
#######################################################################
 
109
# HEVEA conversion.
 
110
#######################################################################
 
111
ifdef USEHEVEA
 
112
# Hevea conversion.
 
113
ifndef HEVEA
 
114
HEVEA = /usr/bin/hevea
 
115
endif
 
116
ifeq ($(ASCIIMODE),YES)
 
117
HEVEAOPTS+=-text
 
118
endif
 
119
endif # USEHEVEA
 
120
 
 
121
# tmpdir
 
122
export TMP=/tmp
 
123
#
 
124
 
 
125
 
 
126
PS = $(addsuffix .ps, $(DOCS))
 
127
DVI = $(addsuffix .dvi, $(DOCS))
 
128
TXT = $(addsuffix .txt, $(DOCS))
 
129
PDF = $(addsuffix .pdf, $(DOCS))
 
130
TOC = $(addsuffix .toc, $(DOCS))
 
131
AUX = $(addsuffix .aux, $(DOCS))
 
132
LOG = $(addsuffix .log, $(DOCS))
 
133
LOT = $(addsuffix .lot, $(DOCS))
 
134
OUT = $(addsuffix .out, $(DOCS))
 
135
# Html files are build in a directory
 
136
HTML = $(DOCS)
 
137
CHK = $(addsuffix .chk, $(DOCS))
 
138
 
 
139
 
 
140
#####################################################################
 
141
# Conversion from types
 
142
#####################################################################
 
143
 
 
144
.PHONY: clean dvi help html ps psdist htmldist htmdist htdist pdfdist \
 
145
        txtdist htm txt pdf refex alldist messages onechap gtk \
 
146
        user ref prog rtl
 
147
 
 
148
.SUFFIXES: .dvi .tex .ps .txt .pdf
 
149
 
 
150
# default show help
 
151
 
 
152
.dvi.ps:
 
153
        $(DVIPS) $<
 
154
 
 
155
.tex.dvi:
 
156
        -rm $*.aux $*.idx  $*.ilg  $*.ind  $*.log  $*.out  $*.toc $*.tmp $*.xref $*.4ht
 
157
        cp -f preamble.$(PREAMBLETYPE) preamble.inc
 
158
        $(LATEX) $*
 
159
        -$(MAKEINDEX) $*
 
160
        $(LATEX) $*
 
161
        -$(MAKEINDEX) $*
 
162
        $(LATEX) $*
 
163
 
 
164
.dvi.txt:
 
165
        $(DVITXT) -o $*.txt  $*.dvi
 
166
 
 
167
.tex.pdf:
 
168
        -rm $*.aux $*.idx  $*.ilg  $*.ind  $*.log  $*.out  $*.toc $*.tmp $*.xref $*.4ht
 
169
        cp -f preamble.$(PREAMBLETYPE) preamble.inc
 
170
        $(PDFLATEX) $*
 
171
        -$(MAKEINDEX) $*
 
172
        $(PDFLATEX) $*
 
173
        -$(MAKEINDEX) $*
 
174
        $(PDFLATEX) $*
 
175
 
 
176
$(TXT) : %.txt: %.dvi
 
177
 
 
178
$(DVI) : %.dvi: %.tex
 
179
 
 
180
$(PDF) : %.pdf: %.tex
 
181
 
 
182
 
 
183
#####################################################################
 
184
# Targets
 
185
#####################################################################
 
186
 
 
187
help:
 
188
        @echo 'Possible targets :'
 
189
        @echo ' dvi           : Make documentation using latex.'
 
190
        @echo ' ps            : Make documentation using latex and dvips.'
 
191
        @echo ' html          : Make HTML documentation using default converter.'
 
192
        @echo ' hevea         : Make HTML documentation using hevea'
 
193
        @echo ' l2h           : Make HTML documentation using latex2html'
 
194
        @echo ' 4ht           : Make HTML documentation using tex4ht'
 
195
        @echo ' pdf           : Make documentation using pdflatex'
 
196
        @echo ' txt           : dvi, convert to text using dvi2tty'
 
197
        @echo ' htm           : Convert .html to .htm files, zip result'
 
198
        @echo ' clean         : Clean up the mess.'
 
199
        @echo ' examples      : Comple all generic examples'
 
200
        @echo ' linuxexamples : Compile all examples for linux'
 
201
        @echo ' dosexamples   : Compile all examples for dos'
 
202
        @echo ' execute       : Execute examples (DOS/Windows/OS/2 only)'
 
203
        @echo ' htmldist      : html, and rchive result.'
 
204
        @echo ' psdist        : ps, and archive result.'
 
205
        @echo ' pdfdist       : pdf, and archive result.'
 
206
 
 
207
clean:
 
208
        -rm -f preamble.inc date.inc messages.inc rtl.inc
 
209
        -rm -f *.4tc *.4ct *.css *.lg *.tmp *.xref
 
210
        -rm -rf $(DOCS)
 
211
        -rm -f $(CHK) $(TOC) $(LOG) $(DVI) $(PDF) $(AUX) $(OUT) $(PS) $(HTML) *.i* $(LOT) $(TXT)
 
212
# Styles
 
213
        -rm -f $(notdir $(wildcard styles/*.sty))
 
214
 
 
215
distclean: clean cleanexamples
 
216
        -rm -f *.tar.gz *.zip
 
217
 
 
218
#####################################################################
 
219
# Include files
 
220
#####################################################################
 
221
 
 
222
date.inc:
 
223
        @echo \\date\{`date +'%B %Y'`\} > date.inc
 
224
 
 
225
../compiler/msg2inc$(EXEEXT):
 
226
        $(MAKE) -C ../compiler msg2inc
 
227
 
 
228
messages.inc: ../compiler/msg2inc$(EXEEXT) ../compiler/msg/errore.msg
 
229
        ../compiler/msg2inc -TE ../compiler/msg/errore.msg messages.inc
 
230
 
 
231
# Local copy of the required styles
 
232
syntax.sty: styles/syntax.sty
 
233
        cp $(wildcard styles/*.sty) .
 
234
 
 
235
# Default includes needed for all docs, don't include preamble.inc
 
236
# because that is overwritten everytime with a new value and therefor
 
237
# always more recent
 
238
INCLUDES=date.inc syntax.sty
 
239
 
 
240
 
 
241
#####################################################################
 
242
# Tex from XML
 
243
#####################################################################
 
244
 
 
245
# Where is System.pp located
 
246
SYSTEMUNITDIR=$(OS_SOURCE)
 
247
ifeq ($(findstring bsd,$(OS_SOURCE)),)
 
248
override SYSTEMUNITDIR=bsd
 
249
endif
 
250
ifeq ($(findstring darwin,$(OS_SOURCE)),)
 
251
override SYSTEMUNITDIR=bsd
 
252
endif
 
253
HOSTOS=$(OS_SOURCE)
 
254
 
 
255
# Classes.pp is in rtl/unix/ for several targets
 
256
ifneq ($(findstring $(OS_SOURCE),linux freebsd darwin netbsd openbsd),)
 
257
CLASSESUNITDIR=unix
 
258
else
 
259
CLASSESUNITDIR=$(OS_SOURCE)
 
260
endif
 
261
 
 
262
FCLOPTS=--package=fcl --descr=classes.xml --input='$(FPCSRCDIR)/rtl/$(OS_SOURCE)/classes.pp -Fi$(FPCSRCDIR)/rtl/objpas/classes'
 
263
 
 
264
fcl.inc: classes.xml
 
265
        $(FPDOC) --output=fcl.inc $(FCLOPTS) --format=latex
 
266
 
 
267
RTLOPTS=--hide-protected --warn-no-node --package=rtl --descr=rtl.xml
 
268
ifndef CURRENTXMLONLY
 
269
XMLUNITS=sysutils strutils dateutils strings mouse keyboard \
 
270
         crt video dos sockets objects heaptrc mmx ipc printer typinfo \
 
271
         ports getopts emu387 dxeload go32 gpm graph oldlinux baseunix \
 
272
         unixtype unix classes unixutil x86 dynlibs linux math system\
 
273
         objpas dateutils rtl
 
274
RTLXML=$(addsuffix .xml,$(XMLUNITS))
 
275
RTLOPTS+= --descr=strutils.xml --input="../rtl/objpas/strutils.pp"
 
276
RTLOPTS+= --descr=sysutils.xml --input="../rtl/unix/sysutils.pp -Fi../rtl/objpas/sysutils -Fi../rtl/inc"
 
277
RTLOPTS+= --descr=strings.xml --input="../rtl/inc/strings.pp -Fi../rtl/i386 -Fi../rtl/inc"
 
278
RTLOPTS+= --descr=mouse.xml --input="../rtl/unix/mouse.pp -Fi../rtl/inc"
 
279
RTLOPTS+= --descr=keyboard.xml --input="../rtl/unix/keyboard.pp -Fi../rtl/inc"
 
280
RTLOPTS+= --descr=crt.xml --input="../rtl/unix/crt.pp -Fi../rtl/inc"
 
281
RTLOPTS+= --descr=video.xml --input="../rtl/unix/video.pp -Fi../rtl/inc"
 
282
RTLOPTS+= --descr=dos.xml --input="../rtl/unix/dos.pp -Fi../rtl/inc -dcpui386"
 
283
RTLOPTS+= --descr=sockets.xml --input="-dver1_0 ../rtl/unix/sockets.pp -Fi../rtl/inc -Fi../rtl/$(OS_SOURCE)"
 
284
RTLOPTS+= --descr=objects.xml --input="../rtl/inc/objects.pp -Fi../rtl/i386 -Fi../rtl/$(OS_SOURCE)"
 
285
RTLOPTS+= --descr=heaptrc.xml --input="../rtl/inc/heaptrc.pp -Fi../rtl/i386 -Fi../rtl/$(OS_SOURCE)"
 
286
RTLOPTS+= --descr=mmx.xml --input="../rtl/i386/mmx.pp -Fi../rtl/$(OS_SOURCE)"
 
287
RTLOPTS+= --descr=ipc.xml --input="../rtl/unix/ipc.pp -Fi../rtl/$(OS_SOURCE)"
 
288
RTLOPTS+= --descr=printer.xml --input="../rtl/unix/printer.pp -Fi../rtl/$(OS_SOURCE) -Fi../rtl/inc"
 
289
RTLOPTS+= --descr=typinfo.xml --input="../rtl/objpas/typinfo.pp -Fi../rtl/$(OS_SOURCE)"
 
290
RTLOPTS+= --descr=ports.xml --input="../rtl/unix/ports.pp -Fi../rtl/$(OS_SOURCE)"
 
291
RTLOPTS+= --descr=getopts.xml --input="../rtl/inc/getopts.pp -Fi../rtl/$(OS_SOURCE)"
 
292
RTLOPTS+= --descr=emu387.xml --input="../rtl/go32v2/emu387.pp -Fi../rtl/i386"
 
293
RTLOPTS+= --descr=dxeload.xml --input="../rtl/go32v2/dxeload.pp -Fi../rtl/i386"
 
294
RTLOPTS+= --descr=go32.xml --input="../rtl/go32v2/go32.pp -Fi../rtl/i386"
 
295
RTLOPTS+= --descr=gpm.xml --input="-dVER1_0 ../rtl/linux/gpm.pp -Fi../rtl/i386"
 
296
RTLOPTS+= --descr=graph.xml --input="../rtl/unix/graph.pp -Fi../rtl/i386 -Fi../rtl/inc/graph"
 
297
RTLOPTS+= --descr=oldlinux.xml --input="../rtl/unix/oldlinux.pp -Fi../rtl/linux -Fi../rtl/unix"
 
298
RTLOPTS+= --descr=unixtype.xml --input="../rtl/unix/unixtype.pp -Fi../rtl/unix -Fi../rtl/linux -Fi../rtl/linux/i386"
 
299
RTLOPTS+= --descr=baseunix.xml --input="../rtl/unix/baseunix.pp -Fi../rtl/unix -Fi../rtl/linux -Fi../rtl/linux/i386"
 
300
RTLOPTS+= --descr=unix.xml  --input="../rtl/unix/unix.pp -Fi../rtl/unix -Fi../rtl/linux -Fi../rtl/linux/i386"
 
301
RTLOPTS+= --descr=classes.xml --input='$(FPCSRCDIR)/rtl/$(CLASSESUNITDIR)/classes.pp -Fi$(FPCSRCDIR)/rtl/objpas/classes'
 
302
RTLOPTS+= --descr=unixutil.xml --input="../rtl/unix/unixutil.pp"
 
303
RTLOPTS+= --descr=x86.xml --input="../rtl/unix/x86.pp"
 
304
RTLOPTS+= --descr=dynlibs.xml --input="../rtl/inc/dynlibs.pp -Fi../rtl/unix"
 
305
RTLOPTS+= --descr=linux.xml --input="../rtl/unix/linux.pp -Fi../rtl/linux -Fi../rtl/unix"
 
306
RTLOPTS+= --descr=math.xml --input="../rtl/objpas/math.pp -Fi../rtl/i386 -dFPC_HAS_TYPE_EXTENDED"
 
307
RTLOPTS+= --descr=system.xml --input="-dfpdocsystem -dHASGETHEAPSTATUS -dSUPPORT_DOUBLE ../rtl/$(SYSTEMUNITDIR)/system.pp -Fi../rtl/$(OS_SOURCE) -Fi../rtl/unix -Fi../rtl/inc -Fi../rtl/i386 -dCPU32 -dHASVARIANT -dFPC_HAS_TYPE_EXTENDED -dHASWIDECHAR"
 
308
RTLOPTS+=--descr=objpas.xml --input="-dHASINTF ../rtl/objpas/objpas.pp"
 
309
RTLOPTS+=--descr=dateutils.xml --input="../rtl/objpas/dateutils.pp -Fi../rtl/objpas"
 
310
else
 
311
RTLXML=dateutils.xml
 
312
RTLOPTS+=--descr=dateutils.xml --input="../rtl/objpas/dateutils.pp -Fi../rtl/objpas"
 
313
endif
 
314
 
 
315
rtl.inc: $(RTLXML)
 
316
        $(FPDOC) --output=rtl.inc $(RTLOPTS) --format=latex
 
317
 
 
318
 
 
319
#####################################################################
 
320
# DVI files
 
321
#####################################################################
 
322
 
 
323
ref.dvi: ref.tex $(INCLUDES)
 
324
 
 
325
prog.dvi: prog.tex $(INCLUDES)
 
326
 
 
327
user.dvi: user.tex $(INCLUDES) messages.inc
 
328
 
 
329
fpdoc.dvi: fpdoc.tex $(INCLUDES)
 
330
 
 
331
fcl.dvi: fcl.tex fcl.inc $(INCLUDES)
 
332
 
 
333
chart.dvi: chart.tex
 
334
 
 
335
 
 
336
ref.pdf: ref.tex $(INCLUDES)
 
337
 
 
338
user.pdf: user.tex $(INCLUDES) messages.inc
 
339
 
 
340
prog.pdf: prog.tex $(INCLUDES)
 
341
 
 
342
onechap.pdf: onechap.tex $(INCLUDES)
 
343
 
 
344
onechap.dvi: onechap.tex $(INCLUDES)
 
345
 
 
346
fpdoc.pdf: fpdoc.tex $(INCLUDES)
 
347
 
 
348
fcl.pdf: fcl.tex fcl.inc $(INCLUDES)
 
349
 
 
350
chart.pdf: chart.tex
 
351
 
 
352
rtl.dvi: rtl.tex rtl.inc $(INCLUDES)
 
353
 
 
354
rtl.pdf: rtl.tex rtl.inc $(INCLUDES)
 
355
 
 
356
dvi : $(DVI)
 
357
 
 
358
txt : dvi $(TXT)
 
359
 
 
360
ps : dvi $(PS)
 
361
 
 
362
pdf : $(PDF)
 
363
 
 
364
all : dvi ps pdf txt html
 
365
 
 
366
 
 
367
#######################################################################
 
368
# HTML creation
 
369
#######################################################################
 
370
 
 
371
.PHONY: htex user prog onechap ref internal html hevea
 
372
 
 
373
ifdef INSTALLDEBUG
 
374
#######################################################################
 
375
# Installation debugging
 
376
$(HTML):
 
377
        mkdir $@
 
378
        cp $@.tex $@/index.html
 
379
html: $(HTML)
 
380
else
 
381
#######################################################################
 
382
# Automatic selection. Default tex4ht
 
383
ifdef USEHEVEA
 
384
include Makefile.hev
 
385
else
 
386
ifdef USEL2H
 
387
include Makefile.l2h
 
388
else
 
389
include Makefile.4ht
 
390
endif  # USEL2H
 
391
endif  # USEHEVEA
 
392
 
 
393
#fcl.chk: classes.xml
 
394
#        $(FPDOC) $(FCLOPTS) --format=html --output=fcl
 
395
#        touch fcl.chk
 
396
 
 
397
rtl.chk: $(RTLXML)
 
398
        $(FPDOC) $(RTLOPTS) --format=html --output=rtl
 
399
        touch rtl.chk
 
400
 
 
401
user.chk: $(INCLUDES) user.tex messages.inc
 
402
prog.chk: $(INCLUDES) prog.tex
 
403
onechap.chk: $(INCLUDES) onechap.tex
 
404
ref.chk: $(INCLUDES) ref.tex
 
405
fpdoc.chk: $(INCLUDES) fpdoc.tex
 
406
chart.chk: $(INCLUDES) chart.tex
 
407
 
 
408
html: $(INCLUDES) $(CHK)
 
409
 
 
410
endif  # INSTALLDEBUG
 
411
#######################################################################
 
412
# Targets to force using a specific tool.
 
413
hevea:
 
414
        $(MAKE) html USEHEVEA=1
 
415
l2h:
 
416
        $(MAKE) html USEL2H=1
 
417
4ht:
 
418
        $(MAKE) html USETEX4HT=1
 
419
 
 
420
 
 
421
#####################################################################
 
422
# GTK Articles
 
423
#####################################################################
 
424
 
 
425
GTKPDF=$(addsuffix .pdf,$(addprefix gtk, 1 2 3 4 5))
 
426
 
 
427
gtk: $(GTKPDF)
 
428
 
 
429
gtk1.pdf: gtk1.tex
 
430
 
 
431
gtk2.pdf: gtk2.tex
 
432
 
 
433
gtk3.pdf: gtk3.tex
 
434
 
 
435
gtk4.pdf: gtk4.tex
 
436
 
 
437
gtk5.pdf: gtk5.tex
 
438
 
 
439
 
 
440
#####################################################################
 
441
# Installation
 
442
#####################################################################
 
443
 
 
444
.PHONY: pdfinstall psinstall dviinstall txtinstall
 
445
 
 
446
pdfinstall: pdf
 
447
        install -d -m 755 $(INSTALL_DOCDIR)
 
448
        cp $(PDF) $(INSTALL_DOCDIR)
 
449
 
 
450
psinstall: ps
 
451
        install -d -m 755 $(INSTALL_DOCDIR)
 
452
        cp $(PS) $(INSTALL_DOCDIR)
 
453
 
 
454
dviinstall: dvi
 
455
        install -d -m 755 $(INSTALL_DOCDIR)
 
456
        cp $(DVI) $(INSTALL_DOCDIR)
 
457
 
 
458
txtinstall: txt
 
459
        install -d -m 755 $(INSTALL_DOCDIR)
 
460
        cp $(TXT) $(INSTALL_DOCDIR)
 
461
 
 
462
htmlinstall: html
 
463
        install -d -m 755 $(INSTALL_DOCDIR)
 
464
        cp fpctoc.html $(INSTALL_DOCDIR)
 
465
        cp -R buttons $(INSTALL_DOCDIR)
 
466
        cp -R pics $(INSTALL_DOCDIR)
 
467
        cp -R $(HTML) $(INSTALL_DOCDIR)
 
468
        find $(INSTALL_DOCDIR) -name 'CVS' -or -name '*.eps' | xargs -n1 rm -rf
 
469
 
 
470
install:
 
471
        @echo Choose install from:
 
472
        @echo pdfinstall,htmlinstall,htmldosinstall
 
473
        @exit
 
474
 
 
475
 
 
476
#####################################################################
 
477
# Distribution archives/packages
 
478
#####################################################################
 
479
 
 
480
pstar:
 
481
        $(MAKE) zipinstall ZIPTARGET=psinstall UNIXHier=1 USETAR=y FULLZIPNAME=doc-ps
 
482
 
 
483
pszip:
 
484
        $(MAKE) zipinstall ZIPTARGET=psinstall UNIXHier= USEZIP=y FULLZIPNAME=doc-ps
 
485
 
 
486
pdftar:
 
487
        $(MAKE) zipinstall ZIPTARGET=pdfinstall UNIXHier=1 USETAR=y FULLZIPNAME=doc-pdf
 
488
 
 
489
pdfzip:
 
490
        $(MAKE) zipinstall ZIPTARGET=pdfinstall UNIXHier= USEZIP=y FULLZIPNAME=doc-pdf
 
491
 
 
492
dvizip:
 
493
        $(MAKE) zipinstall ZIPTARGET=dviinstall UNIXHier= USEZIP=y FULLZIPNAME=doc-dvi
 
494
 
 
495
txtzip:
 
496
        $(MAKE) zipinstall ZIPTARGET=txtinstall UNIXHier= USEZIP=y FULLZIPNAME=doc-txt
 
497
 
 
498
htmltar:
 
499
        $(MAKE) zipinstall ZIPTARGET=htmlinstall UNIXHier=1 USETAR=y FULLZIPNAME=doc-html
 
500
 
 
501
htmlzip:
 
502
        $(MAKE) zipinstall ZIPTARGET=htmlinstall UNIXHier= USEZIP=y FULLZIPNAME=doc-html
 
503
 
 
504
psdist: pszip pstar
 
505
 
 
506
pdfdist: pdfzip pdftar
 
507
 
 
508
txtdist: txtzip
 
509
 
 
510
dvidist: dvizip
 
511
 
 
512
htmldist: htmlzip htmltar
 
513
 
 
514
alldist: dvidist psdist txtdist pdfdist htmldist
 
515
 
 
516
 
 
517
#####################################################################
 
518
# Examples
 
519
#####################################################################
 
520
 
 
521
examples:
 
522
        $(MAKE) -C crtex
 
523
        $(MAKE) -C dosex
 
524
        $(MAKE) -C optex
 
525
        $(MAKE) -C mathex
 
526
        $(MAKE) -C printex
 
527
        $(MAKE) -C progex
 
528
        $(MAKE) -C refex
 
529
        $(MAKE) -C stringex
 
530
        $(MAKE) -C objectex
 
531
        $(MAKE) -C sysutex
 
532
        $(MAKE) -C typinfex
 
533
        $(MAKE) -C kbdex
 
534
 
 
535
cleanexamples:
 
536
        $(MAKE) -C crtex clean
 
537
        $(MAKE) -C dosex clean
 
538
        $(MAKE) -C optex clean
 
539
        $(MAKE) -C mathex clean
 
540
        $(MAKE) -C printex clean
 
541
        $(MAKE) -C progex clean
 
542
        $(MAKE) -C refex clean
 
543
        $(MAKE) -C stringex clean
 
544
        $(MAKE) -C objectex clean
 
545
        $(MAKE) -C sysutex clean
 
546
        $(MAKE) -C typinfex clean
 
547
        $(MAKE) -C kbdex clean
 
548
 
 
549
dosexamples: examples
 
550
        $(MAKE) -C go32ex
 
551
        $(MAKE) -C mouseex
 
552
 
 
553
linuxexamples: examples
 
554
        $(MAKE) -C linuxex
 
555
        $(MAKE) -C sockex
 
556
        $(MAKE) -C ipcex
 
557
 
 
558
execute:
 
559
        $(MAKE) -C dosex all
 
560
        $(MAKE) -C dosex execute
 
561
        $(MAKE) -C refex all
 
562
        $(MAKE) -C refex execute
 
563
        $(MAKE) -C mathex all
 
564
        $(MAKE) -C mathex execute
 
565
        $(MAKE) -C stringex all
 
566
        $(MAKE) -C stringex execute
 
567
        $(MAKE) -C objectex all
 
568
        $(MAKE) -C objectex execute
 
569
        $(MAKE) -C sysutex all
 
570
        $(MAKE) -C sysutex execute
 
571
        $(MAKE) -C typinfex all
 
572
        $(MAKE) -C typinfex execute
 
573
 
 
574
 
 
575
#
 
576
# $Log: Makefile.fpc,v $
 
577
# Revision 1.14  2005/05/15 12:10:00  peter
 
578
#   * use doc/fpc-$version instead of fpdocs-$version
 
579
#
 
580
# Revision 1.13  2005/05/07 09:41:09  michael
 
581
# + Last changes to RTL documentation
 
582
#
 
583
# Revision 1.12  2005/05/05 12:59:59  peter
 
584
#   * 2.0.0
 
585
#
 
586
# Revision 1.11  2005/02/20 00:38:28  michael
 
587
# + Changed tar.gz names to resemble zip names
 
588
#
 
589
# Revision 1.10  2005/02/19 22:24:47  peter
 
590
#   * updated html target
 
591
#
 
592
# Revision 1.9  2005/02/18 23:04:15  michael
 
593
# + Fixed psdist target zip names
 
594
#
 
595
# Revision 1.8  2005/02/14 17:53:11  peter
 
596
#   * baseunix moved to unix
 
597
#
 
598
# Revision 1.7  2005/02/11 16:26:38  peter
 
599
#   * fix previous commit
 
600
#
 
601
# Revision 1.6  2005/02/11 16:25:37  peter
 
602
#   * classes in unix dir
 
603
#
 
604
# Revision 1.5  2005/02/07 21:05:58  michael
 
605
# + Small fix for classes.pp
 
606
#
 
607
# Revision 1.4  2005/02/07 20:39:19  peter
 
608
# fix zip names
 
609
#
 
610
# Revision 1.3  2005/02/06 21:02:12  peter
 
611
#   * updated for current rtl
 
612
#
 
613
# Revision 1.2  2005/01/10 22:49:56  armin
 
614
# * updated makefile.fpc versions to 1.9.7, regenerated makefiles
 
615
#
 
616
# Revision 1.1  2005/01/09 20:14:33  peter
 
617
#   * build messages.inc from errore.msg
 
618
#   * new zip and tar targets
 
619
#   * use fpcmake generated Makefile
 
620
#
 
621
# Revision 1.38  2004/12/30 13:48:53  michael
 
622
# + Fixed warnings, completed dateutils
 
623
#
 
624
# Revision 1.37  2004/12/22 08:47:31  marco
 
625
#  * bsd system unit location fix. Hope it works for Darwin too
 
626
#
 
627
# Revision 1.36  2004/12/21 22:58:24  michael
 
628
# + Added dateutils functions
 
629
#
 
630
# Revision 1.35  2004/12/19 20:20:16  peter
 
631
#   * includes variable instead of target to prevent always rebuilding
 
632
#   * also build fcl.pdf
 
633
#
 
634
# Revision 1.34  2004/12/15 22:14:14  michael
 
635
# + Make targets fixed (hopefully)
 
636
#