OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [doc/] [Makefile.in] - Blame information for rev 842

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 131 jeremybenn
##Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1999, 2000, 2002, 2003,
2
##2007, 2008 Free Software Foundation, Inc.
3
 
4
# Makefile for GDB documentation.
5
# This file is part of GDB.
6
 
7
# This program is free software; you can redistribute it and/or modify
8
# it under the terms of the GNU General Public License as published by
9
# the Free Software Foundation; either version 2 of the License, or
10
# (at your option) any later version.
11
#
12
# This program is distributed in the hope that it will be useful,
13
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
# GNU General Public License for more details.
16
#
17
# You should have received a copy of the GNU General Public License
18
# along with this program; if not, write to the Free Software
19
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20
 
21
srcdir = @srcdir@
22
VPATH = @srcdir@
23
 
24
prefix = @prefix@
25
 
26
infodir = @infodir@
27
pdfdir = $(prefix)/share/doc/gdb
28
htmldir = $(prefix)/html
29
 
30
SHELL = @SHELL@
31
 
32
LN_S = @LN_S@
33
 
34
INSTALL = @INSTALL@
35
INSTALL_PROGRAM = @INSTALL_PROGRAM@
36
INSTALL_DATA = @INSTALL_DATA@
37
 
38
mkinstalldirs = $(SHELL) $(srcdir)/../../mkinstalldirs
39
 
40
# main GDB source directory
41
gdbdir = $(srcdir)/..
42
 
43
# where to find texinfo; GDB dist should include a recent one
44
TEXIDIR=${gdbdir}/../texinfo
45
 
46
# where to find makeinfo, preferably one designed for texinfo-2
47
MAKEINFO=makeinfo
48
 
49
# Note that texinfo 4.0's makeinfo --html can only generate a
50
# single file, which would be too large, so continue to use
51
# texi2html. -sts 2000-03-28
52
# Contrary to documentation, the current directory is not
53
# searched by texi2html, so specify it explicitly.
54
# -macro 2007-07-26
55
MAKEHTML = texi2html
56
MAKEHTMLFLAGS = -menu -split_chapter -I .
57
 
58
# where to find texi2roff, ditto
59
TEXI2ROFF=texi2roff
60
 
61
# where to find texi2dvi, ditto
62
TEXI2DVI=texi2dvi
63
 
64
# Where is the source dir for the READLINE library doc?
65
# Traditionally readline is in .. or .
66
READLINE_DIR = ${gdbdir}/../readline/doc
67
 
68
# The GDB/MI docs come from a sibling directory ../mi
69
GDBMI_DIR = ${gdbdir}/mi
70
 
71
SET_TEXINPUTS = \
72
   TEXINPUTS=${TEXIDIR}:.:$(srcdir):$(READLINE_DIR):$(GDBMI_DIR):$$TEXINPUTS
73
 
74
# Files which should be generated via 'info' and installed by 'install-info'
75
INFO_DEPS = gdb.info gdbint.info stabs.info annotate.info or1k.info
76
 
77
# Files which should be generated via 'pdf' and installed by 'install-pdf'
78
PDFFILES = gdb.pdf gdbint.pdf stabs.pdf refcard.pdf annotate.pdf or1k.pdf
79
 
80
# There may be alternate predefined collections of switches to configure
81
# the GDB manual.  Normally this is not done in synch with the software
82
# config system, since this choice tends to be independent; most people
83
# want a doc config of `all' for a generic manual, regardless of sw config.
84
DOC_CONFIG = all
85
 
86
# This list of sed edits will edit the GDB reference card
87
# for what fonts and what papersize to use.
88
# By default (NO edits applied), the refcard uses:
89
#    - Computer Modern (CM) fonts
90
#    - US letter paper (8.5x11in)
91
# List some of the following files for alternative fonts and paper:
92
#  a4rc.sed     use A4 paper (297 x 210 mm)
93
#  psrc.sed     use PostScript fonts (Karl Berry short TeX names)
94
# lpsrc.sed     use PostScript fonts (full PostScript names in TeX)
95
# e.g. for A4, Postscript:  REFEDITS = a4rc.sed psrc.sed
96
#      for A4, CM fonts:    REFEDITS = a4rc.sed
97
#      for US, PS fonts:    REFEDITS = psrc.sed
98
#      for default:
99
REFEDITS =
100
 
101
# Don Knuth's TeX formatter
102
TEX = tex
103
PDFTEX = pdftex
104
 
105
# Program to generate Postscript files from DVI files.
106
DVIPS = dvips
107
 
108
# Main GDB manual
109
GDB_DOC_SOURCE_INCLUDES = \
110
        $(srcdir)/fdl.texi \
111
        $(srcdir)/gpl.texi \
112
        $(srcdir)/agentexpr.texi \
113
        $(READLINE_DIR)/rluser.texi \
114
        $(READLINE_DIR)/inc-hist.texinfo
115
GDB_DOC_BUILD_INCLUDES = \
116
        gdb-cfg.texi \
117
        GDBvn.texi
118
GDB_DOC_FILES = \
119
        $(srcdir)/gdb.texinfo \
120
        $(GDB_DOC_SOURCE_INCLUDES) \
121
        $(GDB_DOC_BUILD_INCLUDES)
122
 
123
# Internals Manual
124
GDBINT_DOC_SOURCE_INCLUDES = \
125
        $(srcdir)/fdl.texi \
126
        $(srcdir)/observer.texi
127
GDBINT_DOC_BUILD_INCLUDES = \
128
        gdb-cfg.texi \
129
        GDBvn.texi
130
GDBINT_DOC_FILES = \
131
        $(srcdir)/gdbint.texinfo \
132
        $(GDBINT_DOC_SOURCE_INCLUDES) \
133
        $(GDBINT_DOC_BUILD_INCLUDES)
134
 
135
# Stabs manual: All files
136
STABS_DOC_SOURCE_INCLUDES = \
137
        $(srcdir)/fdl.texi
138
STABS_DOC_BUILD_INCLUDES =
139
STABS_DOC_FILES = \
140
        $(srcdir)/stabs.texinfo \
141
        $(STABS_DOC_SOURCE_INCLUDES) \
142
        $(STABS_DOC_BUILD_INCLUDES)
143
 
144
# Annotate migration document
145
ANNOTATE_DOC_SOURCE_INCLUDES = \
146
        $(srcdir)/fdl.texi
147
ANNOTATE_DOC_BUILD_INCLUDES = \
148
        gdb-cfg.texi
149
ANNOTATE_DOC_FILES = \
150
        $(srcdir)/annotate.texinfo \
151
        $(ANNOTATE_DOC_SOURCE_INCLUDES) \
152
        $(ANNOTATE_DOC_BUILD_INCLUDES)
153
 
154
# GDB for OpenRISC 1000 User Guide
155
OR1K_DOC_SOURCE_INCLUDES = \
156
        $(srcdir)/fdl.texi \
157
        $(srcdir)/gpl.texi
158
OR1K_DOC_BUILD_INCLUDES = \
159
        gdb-cfg.texi \
160
        GDBvn.texi
161
OR1K_DOC_FILES = \
162
        $(srcdir)/or1k.texinfo \
163
        $(OR1K_DOC_SOURCE_INCLUDES) \
164
        $(OR1K_DOC_BUILD_INCLUDES)
165
 
166
#### Host, target, and site specific Makefile fragments come in here.
167
###
168
 
169
all:
170
 
171
info: $(INFO_DEPS)
172
dvi: gdb.dvi gdbint.dvi stabs.dvi refcard.dvi annotate.dvi or1k.dvi
173
ps: gdb.ps gdbint.ps stabs.ps refcard.ps annotate.ps or1k.ps
174
html: gdb_toc.html gdbint_toc.html stabs_toc.html annotate_toc.html or1k_toc.html
175
pdf: $(PDFFILES)
176
all-doc: info dvi ps # pdf
177
diststuff: info
178
 
179
install-info: $(INFO_DEPS)
180
        $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(infodir)
181
        @list='$(INFO_DEPS)'; \
182
        for file in $$list; do \
183
          if test -f $$file; then d=.; else d=$(srcdir); fi; \
184
          for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
185
            if test -f $$d/$$ifile; then \
186
              echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; \
187
              $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; \
188
            else : ; fi; \
189
          done; \
190
        done
191
        $(POST_INSTALL)
192
        @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
193
          list='$(INFO_DEPS)'; \
194
          for file in $$list; do \
195
            echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";\
196
            install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;\
197
          done; \
198
        else : ; fi
199
 
200
uninstall-info:
201
        $(PRE_UNINSTALL)
202
        @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
203
          ii=yes; \
204
        else ii=; fi; \
205
        list='$(INFO_DEPS)'; \
206
        for file in $$list; do \
207
          test -z "$$ii" \
208
            || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file; \
209
        done
210
        $(NORMAL_UNINSTALL)
211
        list='$(INFO_DEPS)'; \
212
        for file in $$list; do \
213
          (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9]); \
214
        done
215
 
216
install-html: html
217
        for i in *.html ; do \
218
                $(INSTALL_DATA) $$i $(DESTDIR)$(htmldir)/$$i ; \
219
        done
220
 
221
pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
222
 
223
install-pdf: $(PDFFILES)
224
        @$(NORMAL_INSTALL)
225
        test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
226
        @list='$(PDFFILES)'; for p in $$list; do \
227
          if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
228
          f=$(pdf__strip_dir) \
229
          echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
230
          $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
231
        done
232
 
233
STAGESTUFF = *.info* gdb-all.texi GDBvn.texi *.ps *.dvi *.pdf
234
 
235
# Copy the object files from a particular stage into a subdirectory.
236
stage1: force
237
        -mkdir stage1
238
        -mv $(STAGESTUFF) stage1
239
 
240
stage2: force
241
        -mkdir stage2
242
        -mv $(STAGESTUFF) stage2
243
 
244
stage3: force
245
        -mkdir stage3
246
        -mv $(STAGESTUFF) stage3
247
 
248
against=stage2
249
 
250
comparison: force
251
        for i in $(STAGESTUFF) ; do cmp $$i $(against)/$$i ; done
252
 
253
de-stage1: force
254
        -(cd stage1 ; mv -f * ..)
255
        -rmdir stage1
256
 
257
de-stage2: force
258
        -(cd stage2 ; mv -f * ..)
259
        -rmdir stage2
260
 
261
de-stage3: force
262
        -(cd stage3 ; mv -f * ..)
263
        -rmdir stage3
264
 
265
# GDB QUICK REFERENCE (dvi output)
266
refcard.dvi : refcard.tex $(REFEDITS)
267
        echo > tmp.sed
268
        for f in x $(REFEDITS) ; do \
269
                test x$$f = xx && continue ; \
270
                cat $(srcdir)/$$f >>tmp.sed ; \
271
        done
272
        sed -f tmp.sed $(srcdir)/refcard.tex >sedref.tex
273
        $(SET_TEXINPUTS) $(TEX) sedref.tex
274
        mv sedref.dvi refcard.dvi
275
        rm -f sedref.log sedref.tex tmp.sed
276
 
277
refcard.ps : refcard.dvi
278
        $(DVIPS) -t landscape -o $@ $?
279
 
280
refcard.pdf : refcard.tex $(REFEDITS)
281
        echo > tmp.sed
282
        for f in x $(REFEDITS) ; do \
283
                test x$$f = xx && continue ; \
284
                cat $(srcdir)/$$f >>tmp.sed ; \
285
        done
286
        sed -f tmp.sed $(srcdir)/refcard.tex >sedref.tex
287
        $(SET_TEXINPUTS) $(PDFTEX) sedref.tex
288
        mv sedref.pdf refcard.pdf
289
        rm -f sedref.log sedref.tex tmp.sed
290
 
291
# File to record current GDB version number (copied from main dir version.in)
292
GDBvn.texi : ${gdbdir}/version.in
293
        echo "@set GDBVN `sed q $(srcdir)/../version.in`" > ./GDBvn.new
294
        mv GDBvn.new GDBvn.texi
295
 
296
# Updated atomically
297
.PRECIOUS: GDBvn.texi
298
 
299
# Choose configuration for GDB manual (normally `all'; normally not tied into
300
# `configure' script because most users prefer generic version of manual,
301
# not one for their binary config---which may not be specifically
302
# defined anyways).
303
gdb-cfg.texi: ${srcdir}/${DOC_CONFIG}-cfg.texi
304
        (test "$(LN_S)" = "ln -s" && \
305
          ln -s ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi) || \
306
        ln ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi || \
307
        cp ${srcdir}/${DOC_CONFIG}-cfg.texi gdb-cfg.texi
308
 
309
# GDB MANUAL: texinfo source, using @set/@clear/@value/@ifset/@ifclear
310
# If your texinfo or makeinfo don't support these, get a new texinfo release
311
#
312
# The nonsense with GDBvn.texi gets this to run with both Sun and GNU make.
313
#   Note that we can *generate* GDBvn.texi, but since we distribute one in the
314
#   source directory for the benefit of people who *don't* use this makefile,
315
#   VPATH will often tell make not to bother building it, because the one
316
#   in the srcdir is up to date.  (if not, then make should build one here).
317
 
318
# Clean these up before each run.  Avoids a catch 22 with not being
319
# able to re-generate these files (to fix a corruption) because these
320
# files contain a corruption.
321
GDB_TEX_TMPS = gdb.aux gdb.cp* gdb.fn* gdb.ky* gdb.log gdb.pg* gdb.toc \
322
        gdb.tp* gdb.vr*
323
 
324
# GDB MANUAL: TeX dvi file
325
gdb.dvi: ${GDB_DOC_FILES}
326
        if [ ! -f ./GDBvn.texi ]; then \
327
                (test "$(LN_S)" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \
328
                ln $(srcdir)/GDBvn.texi . || \
329
                cp $(srcdir)/GDBvn.texi . ; else true; fi
330
        rm -f $(GDB_TEX_TMPS)
331
        $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/gdb.texinfo
332
 
333
gdb.ps: gdb.dvi
334
        $(DVIPS) -o $@ $?
335
 
336
gdb.pdf: ${GDB_DOC_FILES}
337
        if [ ! -f ./GDBvn.texi ]; then \
338
                (test "$(LN_S)" = "ln -s" && ln -s $(srcdir)/GDBvn.texi .) || \
339
                ln $(srcdir)/GDBvn.texi . || \
340
                cp $(srcdir)/GDBvn.texi . ; else true; fi
341
        rm -f $(GDB_TEX_TMPS)
342
        $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/gdb.texinfo
343
 
344
# GDB MANUAL: info file
345
gdb.info: ${GDB_DOC_FILES}
346
        $(MAKEINFO) -I ${READLINE_DIR} -I ${GDBMI_DIR} -I $(srcdir) \
347
                -o gdb.info $(srcdir)/gdb.texinfo
348
 
349
# GDB MANUAL: roff translations
350
# Try to use a recent texi2roff.  v2 was put on prep in jan91.
351
# If you want an index, see texi2roff doc for postprocessing
352
# and add -i to texi2roff invocations below.
353
# Workarounds for texi2roff-2 (probably fixed in later texi2roff's, delete
354
#    corresponding -e lines when later texi2roff's are current)
355
# + @ifinfo's deleted explicitly due to texi2roff-2 bug w nested constructs.
356
# + @c's deleted explicitly because texi2roff sees texinfo commands in them
357
# + @   (that's at-BLANK) not recognized by texi2roff, turned into blank
358
# + @alphaenumerate is ridiculously new, turned into @enumerate
359
 
360
# texi2roff doesn't have a notion of include dirs, so we have to fake
361
# it out for gdb manual's include files---but only if not configured
362
# in main sourcedir.
363
links2roff: $(GDB_DOC_SOURCE_INCLUDES)
364
        if [ ! -f gdb.texinfo ]; then \
365
                (test "$(LN_S)" = "ln -s" && ln -s $(GDB_DOC_SOURCE_INCLUDES) .) || \
366
                ln $(GDB_DOC_SOURCE_INCLUDES)    . || \
367
                cp $(GDB_DOC_SOURCE_INCLUDES)    . ; \
368
        fi
369
        touch links2roff
370
 
371
# gdb manual suitable for [gtn]roff -me
372
gdb.me: $(GDB_DOC_FILES) links2roff
373
        sed -e '/\\input texinfo/d' \
374
                -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
375
                -e '/^@ifinfo/,/^@end ifinfo/d' \
376
                -e '/^@c /d' \
377
                -e 's/{.*,,/{/' \
378
                -e 's/@ / /g' \
379
                -e 's/^@alphaenumerate/@enumerate/g' \
380
                -e 's/^@end alphaenumerate/@end enumerate/g' \
381
                $(srcdir)/gdb.texinfo | \
382
        $(TEXI2ROFF) -me | \
383
        sed -e 's/---/\\(em/g' \
384
        >gdb.me
385
 
386
# gdb manual suitable for [gtn]roff -ms
387
gdb.ms: $(GDB_DOC_FILES) links2roff
388
        sed -e '/\\input texinfo/d' \
389
                -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
390
                -e '/^@ifinfo/,/^@end ifinfo/d' \
391
                -e '/^@c /d' \
392
                -e 's/{.*,,/{/' \
393
                -e 's/@ / /g' \
394
                -e 's/^@alphaenumerate/@enumerate/g' \
395
                -e 's/^@end alphaenumerate/@end enumerate/g' \
396
                $(srcdir)/gdb.texinfo | \
397
        $(TEXI2ROFF) -ms | \
398
        sed -e 's/---/\\(em/g' \
399
        >gdb.ms
400
 
401
# gdb manual suitable for [tn]roff -mm
402
# '@noindent's removed due to texi2roff-2 mm bug; if yours is newer,
403
#   try leaving them in
404
gdb.mm: $(GDB_DOC_FILES) links2roff
405
        sed -e '/\\input texinfo/d' \
406
                -e '/@c TEXI2ROFF-KILL/,/@c END TEXI2ROFF-KILL/d' \
407
                -e '/^@ifinfo/,/^@end ifinfo/d' \
408
                -e '/^@c /d' \
409
                -e 's/{.*,,/{/' \
410
                -e '/@noindent/d' \
411
                -e 's/@ / /g' \
412
                -e 's/^@alphaenumerate/@enumerate/g' \
413
                -e 's/^@end alphaenumerate/@end enumerate/g' \
414
                $(srcdir)/gdb.texinfo | \
415
        $(TEXI2ROFF) -mm | \
416
        sed -e 's/---/\\(em/g' \
417
        >gdb.mm
418
 
419
# GDB MANUAL: HTML file
420
 
421
gdb_toc.html: ${GDB_DOC_FILES}
422
        $(MAKEHTML) $(MAKEHTMLFLAGS) -I ${READLINE_DIR} -I ${GDBMI_DIR} -I $(srcdir) $(srcdir)/gdb.texinfo
423
 
424
# Clean these up before each run.  Avoids a catch 22 with not being
425
# able to re-generate these files (to fix a corruption) because these
426
# files contain a corruption.
427
GDBINT_TEX_TMPS = gdbint.aux gdbint.cp* gdbint.fn* gdbint.ky* \
428
        gdbint.log gdbint.pg* gdbint.toc gdbint.tp* gdbint.vr*
429
 
430
# GDB INTERNALS MANUAL: TeX dvi file
431
gdbint.dvi: $(GDBINT_DOC_FILES)
432
        rm -f $(GDBINT_TEX_TMPS)
433
        $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/gdbint.texinfo
434
 
435
gdbint.ps : gdbint.dvi
436
        $(DVIPS) -o $@ $?
437
 
438
gdbint.pdf: $(GDBINT_DOC_FILES)
439
        rm -f $(GDBINT_TEX_TMPS)
440
        $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/gdbint.texinfo
441
 
442
# GDB INTERNALS MANUAL: info file
443
 
444
gdbint.info: $(GDBINT_DOC_FILES)
445
        $(MAKEINFO) -I $(srcdir) -o gdbint.info $(srcdir)/gdbint.texinfo
446
 
447
# GDB INTERNALS MANUAL: HTML file
448
 
449
gdbint_toc.html: $(GDBINT_DOC_FILES)
450
        $(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/gdbint.texinfo
451
 
452
stabs.info: $(STABS_DOC_FILES)
453
        $(MAKEINFO) -I $(srcdir) -o stabs.info $(srcdir)/stabs.texinfo
454
 
455
# STABS DOCUMENTATION: HTML file
456
 
457
stabs_toc.html: $(STABS_DOC_FILES)
458
        $(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/stabs.texinfo
459
 
460
# Clean these up before each run.  Avoids a catch 22 with not being
461
# able to re-generate these files (to fix a corruption) because these
462
# files contain a corruption.
463
STABS_TEX_TMPS = stabs.aux stabs.cp* stabs.fn* stabs.ky* \
464
        stabs.log stabs.pg* stabs.toc stabs.tp* stabs.vr*
465
 
466
# STABS DOCUMENTATION: TeX dvi file
467
stabs.dvi : $(STABS_DOC_FILES)
468
        rm -f $(STABS_TEX_TMPS)
469
        $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/stabs.texinfo
470
 
471
stabs.ps: stabs.dvi
472
        $(DVIPS) -o $@ $?
473
 
474
stabs.pdf: $(STABS_DOC_FILES)
475
        rm -f $(STABS_TEX_TMPS)
476
        $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/stabs.texinfo
477
 
478
# Clean these up before each run.  Avoids a catch 22 with not being
479
# able to re-generate these files (to fix a corruption) because these
480
# files contain a corruption.
481
ANNOTATE_TEX_TMPS = annotate.aux annotate.cp* annotate.fn* annotate.ky* \
482
        annotate.log annotate.pg* annotate.toc annotate.tp* annotate.vr*
483
 
484
# ANNOTATE DOCUMENTATION: TeX dvi file
485
annotate.dvi : $(ANNOTATE_DOC_FILES)
486
        rm -f $(ANNOTATE_TEX_TMPS)
487
        $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/annotate.texinfo
488
 
489
annotate.ps: annotate.dvi
490
        $(DVIPS) -o $@ $?
491
 
492
annotate.pdf: $(ANNOTATE_DOC_FILES)
493
        rm -f $(ANNOTATE_TEX_TMPS)
494
        $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/annotate.texinfo
495
 
496
annotate.info: $(ANNOTATE_DOC_FILES)
497
        $(MAKEINFO)  -I $(srcdir) -o annotate.info $(srcdir)/annotate.texinfo
498
 
499
annotate_toc.html: $(ANNOTATE_DOC_FILES)
500
        $(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/annotate.texinfo
501
 
502
# Clean these up before each run.  Avoids a catch 22 with not being
503
# able to re-generate these files (to fix a corruption) because these
504
# files contain a corruption.
505
OR1K_TEX_TMPS = or1k.aux or1k.cp* or1k.fn* or1k.ky* \
506
        or1k.log or1k.pg* or1k.toc or1k.tp* or1k.vr*
507
 
508
# GDB for OpenRISC 1000 DOCUMENTATION: TeX dvi file
509
or1k.dvi : $(OR1K_DOC_FILES)
510
        rm -f $(OR1K_TEX_TMPS)
511
        $(SET_TEXINPUTS) $(TEXI2DVI) $(srcdir)/or1k.texinfo
512
 
513
or1k.ps: or1k.dvi
514
        $(DVIPS) -o $@ $?
515
 
516
or1k.pdf: $(OR1K_DOC_FILES)
517
        rm -f $(OR1K_TEX_TMPS)
518
        $(SET_TEXINPUTS) $(TEXI2DVI) --pdf $(srcdir)/or1k.texinfo
519
 
520
or1k.info: $(OR1K_DOC_FILES)
521
        $(MAKEINFO)  -I $(srcdir) -o or1k.info $(srcdir)/or1k.texinfo
522
 
523
or1k_toc.html: $(OR1K_DOC_FILES)
524
        $(MAKEHTML) $(MAKEHTMLFLAGS) $(srcdir)/or1k.texinfo
525
 
526
force:
527
 
528
Makefile: Makefile.in $(host_makefile_frag) config.status
529
        $(SHELL) ./config.status
530
 
531
 
532
# The "least clean" level of cleaning.  Get rid of files which are
533
# automatically generated files that are just intermediate files,
534
 
535
mostlyclean:
536
        rm -f gdb.mm gdb.ms gdb.me links2roff
537
        rm -f $(GDB_TEX_TMPS)
538
        rm -f $(GDBINT_TEX_TMPS)
539
        rm -f $(STABS_TEX_TMPS)
540
        rm -f $(ANNOTATE_TEX_TMPS)
541
        rm -f $(OR1K_TEX_TMPS)
542
        rm -f sedref.dvi sedref.tex tmp.sed
543
 
544
clean: mostlyclean
545
        rm -f gdb-cfg.texi
546
 
547
distclean: clean
548
        rm -f Makefile config.status config.log
549
 
550
# GDBvn.texi, the dvi files, the info files, and the postscript files,
551
# are all part of the distribution, so it should not be removed by
552
# "clean" or "distclean".  Use maintainer-clean to remove them.
553
 
554
maintainer-clean realclean: distclean
555
        rm -f GDBvn.texi *.info* *.dvi *.ps *.html *.pdf
556
 
557
install: install-info
558
 
559
uninstall: uninstall-info

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.