source: rtems/doc/supplements/sparc/Makefile @ f96d62ca

4.104.114.84.95
Last change on this file since f96d62ca was f96d62ca, checked in by Joel Sherrill <joel.sherrill@…>, on 10/11/99 at 20:00:09

Cleaned up to install dvi, use native texi2dvi, etc..

  • Property mode set to 100644
File size: 4.3 KB
Line 
1#
2#  COPYRIGHT (c) 1988-1998.
3#  On-Line Applications Research Corporation (OAR).
4#  All rights reserved.
5#
6#  $Id$
7#
8
9PROJECT=sparc
10
11include ../../Make.config
12
13REPLACE=../../tools/word-replace
14
15all: html info ps pdf
16
17dirs:
18        $(make-dirs)
19
20COMMON_FILES=../../common/cpright.texi ../../common/setup.texi
21
22GENERATED_FILES=\
23  cpumodel.texi callconv.texi memmodel.texi intr.texi fatalerr.texi \
24  bsp.texi cputable.texi timing.texi wksheets.texi timeERC32.texi
25
26FILES= $(PROJECT).texi \
27  preface.texi \
28  $(GENERATED_FILES)
29
30INFOFILES=$(wildcard $(PROJECT) $(PROJECT)-*)
31
32info: dirs c_sparc
33        cp c_$(PROJECT) c_$(PROJECT)-* $(INFO_INSTALL)
34
35c_sparc: $(FILES)
36        $(MAKEINFO) $(PROJECT).texi
37
38dvi: dirs $(PROJECT).dvi
39ps: dirs $(PROJECT).ps
40pdf: dirs $(PROJECT).pdf
41       
42$(PROJECT).pdf: $(FILES)
43        $(TEXI2PDF) $(PROJECT).texi
44        cp $(PROJECT).pdf $(WWW_INSTALL)/$(PROJECT)
45       
46$(PROJECT).ps: dirs $(PROJECT).dvi
47        dvips -o $(PROJECT).ps $(PROJECT).dvi
48        cp $(PROJECT).ps $(WWW_INSTALL)/$(PROJECT)
49
50$(PROJECT).dvi: $(FILES)
51        $(TEXI2DVI) $(PROJECT).texi
52        cp $(PROJECT).dvi $(WWW_INSTALL)/$(PROJECT)
53
54html: dirs $(FILES)
55        -mkdir -p $(WWW_INSTALL)/$(PROJECT)
56        $(TEXI2WWW) $(TEXI2WWW_ARGS) -dir $(WWW_INSTALL)/$(PROJECT) \
57            $(PROJECT).texi
58
59clean:
60        rm -f *.o $(PROG) *.txt core $(PROJECT).pdf
61        rm -f *.dvi *.ps *.log *.aux *.cp *.fn *.ky *.pg *.toc *.tp *.vr $(BASE)
62        rm -f $(PROJECT) $(PROJECT)-*
63        rm -f c_$(PROJECT) c_$(PROJECT)-*
64        rm -f intr.t $(GENERATED_FILES)
65        rm -f wksheets.t wksheets_NOTIMES.t timing.t
66        rm -f timeERC32_.t timeERC32_.texi
67        rm -f *.fixed _*
68
69#
70#  Chapters which get automatic processing
71#
72
73cpumodel.texi: cpumodel.t Makefile
74        $(BMENU) -p "Preface" \
75            -u "Top" \
76            -n "Calling Conventions" ${*}.t
77
78callconv.texi: callconv.t Makefile
79        $(BMENU) -p "CPU Model Dependent Features CPU Model Implementation Notes" \
80            -u "Top" \
81            -n "Memory Model" ${*}.t
82
83memmodel.texi: memmodel.t Makefile
84        $(BMENU) -p "Calling Conventions User-Provided Routines" \
85            -u "Top" \
86            -n "Interrupt Processing" ${*}.t
87
88# Interrupt Chapter:
89#  1.  Replace Times and Sizes
90#  2.  Build Node Structure
91intr.t: intr_NOTIMES.t ERC32_TIMES
92        ${REPLACE} -p ERC32_TIMES intr_NOTIMES.t
93        mv intr_NOTIMES.t.fixed intr.t
94
95intr.texi: intr.t Makefile
96        $(BMENU) -p "Memory Model Flat Memory Model" \
97            -u "Top" \
98            -n "Default Fatal Error Processing" ${*}.t
99
100fatalerr.texi: fatalerr.t Makefile
101        $(BMENU) -p "Interrupt Processing Interrupt Stack" \
102            -u "Top" \
103            -n "Board Support Packages" ${*}.t
104
105bsp.texi: bsp.t Makefile
106        $(BMENU) -p "Default Fatal Error Processing Default Fatal Error Handler Operations" \
107            -u "Top" \
108            -n "Processor Dependent Information Table" ${*}.t
109
110cputable.texi: cputable.t Makefile
111        $(BMENU) -p "Board Support Packages Processor Initialization" \
112            -u "Top" \
113            -n "Memory Requirements" ${*}.t
114
115
116# Worksheets Chapter:
117#  1.  Obtain the Shared File
118#  2.  Replace Times and Sizes
119#  3.  Build Node Structure
120
121wksheets_NOTIMES.t: ../../common/wksheets.t
122        cp ../../common/wksheets.t wksheets_NOTIMES.t
123
124wksheets.t: wksheets_NOTIMES.t ERC32_TIMES
125        ${REPLACE} -p ERC32_TIMES wksheets_NOTIMES.t
126        mv wksheets_NOTIMES.t.fixed wksheets.t
127
128wksheets.texi: wksheets.t Makefile
129        $(BMENU) -p "Processor Dependent Information Table CPU Dependent Information Table" \
130            -u "Top" \
131            -n "Timing Specification" ${*}.t
132
133# Timing Specification Chapter:
134#  1.  Copy the Shared File
135#  3.  Build Node Structure
136
137timing.t: ../../common/timing.t
138        cp ../../common/timing.t timing.t
139
140timing.texi: timing.t Makefile
141        $(BMENU) -p "Memory Requirements RTEMS RAM Workspace Worksheet" \
142            -u "Top" \
143            -n "ERC32 Timing Data" ${*}.t
144
145# Timing Data for ERC32 BSP Chapter:
146#  1.  Copy the Shared File
147#  2.  Replace Times and Sizes
148#  3.  Build Node Structure
149
150timeERC32_.t: ../../common/timetbl.t timeERC32.t
151        cat timeERC32.t ../../common/timetbl.t               >timeERC32_.t
152        @echo                                               >>timeERC32_.t
153        @echo "@tex"                                        >>timeERC32_.t
154        @echo "\\global\\advance \\smallskipamount by 4pt"  >>timeERC32_.t
155        @echo "@end tex"                                    >>timeERC32_.t
156        ${REPLACE} -p ERC32_TIMES timeERC32_.t
157        mv timeERC32_.t.fixed timeERC32_.t
158
159timeERC32.texi: timeERC32_.t Makefile
160        $(BMENU) -p "Timing Specification Terminology" \
161            -u "Top" \
162            -n "Command and Variable Index" timeERC32_.t
163        mv timeERC32_.texi timeERC32.texi
Note: See TracBrowser for help on using the repository browser.