source: rtems/doc/supplements/template/Makefile @ ed11cadf

4.104.114.84.95
Last change on this file since ed11cadf was ed11cadf, checked in by Joel Sherrill <joel.sherrill@…>, on 10/01/99 at 17:44:06

Numerous minor changes required to transition to the latest version
of texinfo and TeX. This version of the tools can produce PDF with
figures included.

  • Property mode set to 100644
File size: 4.2 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=template
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 wksheets.texi timing.texi timeBSP.texi
25
26FILES= $(PROJECT).texi preface.texi \
27  $(COMMON_FILES) $(GENERATED_FILES)
28
29info: dirs c_$(PROJECT)
30        @echo NEED TO INSTALL THE INFO FILES
31        #cp c_$(PROJECT) c_$(PROJECT)-* $(INFO_INSTALL)
32        #cp c_$(PROJECT) c_$(PROJECT)-* $(INFO_INSTALL)
33
34c_$(PROJECT): $(FILES)
35        $(MAKEINFO) $(PROJECT).texi
36
37dvi: $(PROJECT).dvi
38ps: dirs $(PROJECT).ps
39pdf: dirs $(PROJECT).pdf
40       
41$(PROJECT).pdf: $(FILES)
42        $(TEXI2PDF) $(PROJECT).texi
43        cp $(PROJECT).pdf $(PDF_INSTALL)
44       
45$(PROJECT).ps: $(PROJECT).dvi
46        dvips -o $(PROJECT).ps $(PROJECT).dvi
47        cp $(PROJECT).ps $(PS_INSTALL)
48
49$(PROJECT).dvi: $(FILES)
50        $(TEXI2DVI) $(PROJECT).texi
51
52html: dirs $(FILES)
53        -mkdir -p $(WWW_INSTALL)/c_$(PROJECT)
54        $(TEXI2WWW) $(TEXI2WWW_ARGS) -dir $(WWW_INSTALL)/c_$(PROJECT) \
55            $(PROJECT).texi
56
57clean:
58        rm -f *.o $(PROG) *.txt core *.pdf
59        rm -f *.dvi *.ps *.log *.aux *.cp *.fn *.ky *.pg *.toc *.tp *.vr $(BASE)
60        rm -f $(PROJECT) $(PROJECT)-*
61        rm -f c_$(PROJECT) c_$(PROJECT)-*
62        rm -f wksheets.t wksheets_NOTIMES.t
63        rm -f intr.t
64        rm -f timeBSP_.t timing.t
65        rm -f *.fixed _* $(GENERATED_FILES)
66        rm -f timeBSP_.t
67
68#
69#  Chapters which get automatic processing
70#
71cpumodel.texi: cpumodel.t Makefile
72        $(BMENU) -p "Preface" \
73            -u "Top" \
74            -n "Calling Conventions" ${*}.t
75
76callconv.texi: callconv.t Makefile
77        $(BMENU) -p "CPU Model Dependent Features Another Optional Feature" \
78            -u "Top" \
79            -n "Memory Model" ${*}.t
80
81memmodel.texi: memmodel.t Makefile
82        $(BMENU) -p "Calling Conventions User-Provided Routines" \
83            -u "Top" \
84            -n "Interrupt Processing" ${*}.t
85
86# Interrupt Chapter:
87#  1.  Replace Times and Sizes
88#  2.  Build Node Structure
89intr.t: intr_NOTIMES.t BSP_TIMES
90        ${REPLACE} -p BSP_TIMES intr_NOTIMES.t
91        mv intr_NOTIMES.t.fixed intr.t
92
93intr.texi: intr.t Makefile
94        $(BMENU) -p "Memory Model Flat Memory Model" \
95            -u "Top" \
96            -n "Default Fatal Error Processing" ${*}.t
97
98fatalerr.texi: fatalerr.t Makefile
99        $(BMENU) -p "Interrupt Processing Interrupt Stack" \
100            -u "Top" \
101            -n "Board Support Packages" ${*}.t
102
103bsp.texi: bsp.t Makefile
104        $(BMENU) -p "Default Fatal Error Processing Default Fatal Error Handler Operations" \
105            -u "Top" \
106            -n "Processor Dependent Information Table" ${*}.t
107
108cputable.texi: cputable.t Makefile
109        $(BMENU) -p "Board Support Packages Processor Initialization" \
110            -u "Top" \
111            -n "Memory Requirements" ${*}.t
112
113# Worksheets Chapter:
114#  1.  Copy the Shared File
115#  2.  Replace Times and Sizes
116#  3.  Build Node Structure
117
118wksheets_NOTIMES.t: ../../common/wksheets.t
119        cp ../../common/wksheets.t wksheets_NOTIMES.t
120
121wksheets.t: wksheets_NOTIMES.t BSP_TIMES
122        ${REPLACE} -p BSP_TIMES wksheets_NOTIMES.t
123        mv wksheets_NOTIMES.t.fixed wksheets.t
124
125wksheets.texi: wksheets.t Makefile
126        $(BMENU) -p "Processor Dependent Information Table CPU Dependent Information Table" \
127            -u "Top" \
128            -n "Timing Specification" ${*}.t
129
130# Timing Specification Chapter:
131#  1.  Copy the Shared File
132#  3.  Build Node Structure
133
134timing.t: ../../common/timing.t
135        cp ../../common/timing.t timing.t
136
137timing.texi: timing.t Makefile
138        $(BMENU) -p "Memory Requirements RTEMS RAM Workspace Worksheet" \
139            -u "Top" \
140            -n "BSP_FOR_TIMES Timing Data" ${*}.t
141
142# Timing Data for BSP Chapter:
143#  1.  Copy the Shared File
144#  2.  Replace Times and Sizes
145#  3.  Build Node Structure
146
147timeBSP_.t: ../../common/timetbl.t timeBSP.t
148        cat timeBSP.t ../../common/timetbl.t                 >timeBSP_.t
149        @echo                                               >>timeBSP_.t
150        @echo "@tex"                                        >>timeBSP_.t
151        @echo "\\global\\advance \\smallskipamount by 4pt"  >>timeBSP_.t
152        @echo "@end tex"                                    >>timeBSP_.t
153
154timeBSP.texi: timeBSP_.t Makefile
155        $(BMENU) -p "Timing Specification Terminology" \
156            -u "Top" \
157            -n "Command and Variable Index" timeBSP_.t
158        mv timeBSP_.t timeBSP.texi
Note: See TracBrowser for help on using the repository browser.