source: rtems/doc/supplements/i386/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.5 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=i386
10
11include ../../Make.config
12
13REPLACE=../../tools/word-replace
14
15all: html info ps pdf
16
17COMMON_FILES=../../common/cpright.texi ../../common/setup.texi
18
19GENERATED_FILES=\
20  cpumodel.texi callconv.texi memmodel.texi intr.texi fatalerr.texi \
21  bsp.texi cputable.texi timing.texi wksheets.texi timeFORCE386.texi
22
23FILES= $(PROJECT).texi \
24  preface.texi \
25  $(GENERATED_FILES)
26
27
28dirs:
29        $(make-dirs)
30
31info: dirs c_i386
32        cp c_$(PROJECT) $(INFO_INSTALL)
33        #cp c_$(PROJECT) c_$(PROJECT)-* $(INFO_INSTALL)
34
35c_i386: $(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: $(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_i386 c_i386-*
64        rm -f intr.t $(GENERATED_FILES)
65        rm -f wksheets.t wksheets_NOTIMES.t timing.t intr.t
66        rm -f timeFORCE386_.t timeFORCE386_.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 Floating Point Unit" \
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
91
92#intr.texi: intr.t FORCE386_TIMES
93#       ${REPLACE} -p FORCE386_TIMES intr.t
94#       mv intr.t.fixed intr.texi
95
96# Interrupt Chapter:
97#  1.  Replace Times and Sizes
98#  2.  Build Node Structure
99intr.t: intr_NOTIMES.t FORCE386_TIMES
100        ${REPLACE} -p FORCE386_TIMES intr_NOTIMES.t
101        mv intr_NOTIMES.t.fixed intr.t
102
103intr.texi: intr.t Makefile
104        $(BMENU) -p "Memory Model Flat Memory Model" \
105            -u "Top" \
106            -n "Default Fatal Error Processing" ${*}.t
107
108fatalerr.texi: fatalerr.t Makefile
109        $(BMENU) -p "Interrupt Processing Interrupt Stack" \
110            -u "Top" \
111            -n "Board Support Packages" ${*}.t
112
113bsp.texi: bsp.t Makefile
114        $(BMENU) -p "Default Fatal Error Processing Default Fatal Error Handler Operations" \
115            -u "Top" \
116            -n "Processor Dependent Information Table" ${*}.t
117
118cputable.texi: cputable.t Makefile
119        $(BMENU) -p "Board Support Packages Processor Initialization" \
120            -u "Top" \
121            -n "Memory Requirements" ${*}.t
122
123# Worksheets Chapter:
124#  1.  Obtain the Shared File
125#  2.  Replace Times and Sizes
126#  3.  Build Node Structure
127
128wksheets_NOTIMES.t: ../../common/wksheets.t
129        cp ../../common/wksheets.t wksheets_NOTIMES.t
130
131wksheets.t: wksheets_NOTIMES.t FORCE386_TIMES
132        ${REPLACE} -p FORCE386_TIMES wksheets_NOTIMES.t
133        mv wksheets_NOTIMES.t.fixed wksheets.t
134
135wksheets.texi: wksheets.t Makefile
136        $(BMENU) -p "Processor Dependent Information Table CPU Dependent Information Table" \
137            -u "Top" \
138            -n "Timing Specification" ${*}.t
139
140# Timing Specification Chapter:
141#  1.  Copy the Shared File
142#  3.  Build Node Structure
143
144timing.t: ../../common/timing.t
145        cp ../../common/timing.t timing.t
146
147timing.texi: timing.t Makefile
148        $(BMENU) -p "Memory Requirements RTEMS RAM Workspace Worksheet" \
149            -u "Top" \
150            -n "CPU386 Timing Data" ${*}.t
151
152# Timing Data for BSP Chapter:
153#  1.  Copy the Shared File
154#  2.  Replace Times and Sizes
155#  3.  Build Node Structure
156
157timeFORCE386_.t: ../../common/timetbl.t timeFORCE386.t
158        cat timeFORCE386.t ../../common/timetbl.t            >timeFORCE386_.t
159        @echo                                               >>timeFORCE386_.t
160        @echo "@tex"                                        >>timeFORCE386_.t
161        @echo "\\global\\advance \\smallskipamount by 4pt"  >>timeFORCE386_.t
162        @echo "@end tex"                                    >>timeFORCE386_.t
163        ${REPLACE} -p FORCE386_TIMES timeFORCE386_.t
164        mv timeFORCE386_.t.fixed timeFORCE386_.t
165
166timeFORCE386.texi: timeFORCE386_.t Makefile
167        $(BMENU) -p "Timing Specification Terminology" \
168            -u "Top" \
169            -n "Command and Variable Index" timeFORCE386_.t
170        mv timeFORCE386_.texi timeFORCE386.texi
Note: See TracBrowser for help on using the repository browser.