source: rtems/doc/supplements/m68k/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=m68k
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 timeMVME136.texi
25
26FILES= $(PROJECT).texi \
27  preface.texi \
28  $(GENERATED_FILES)
29
30info: dirs c_m68k
31        cp c_$(PROJECT) c_$(PROJECT)-* $(INFO_INSTALL)
32
33c_m68k: $(FILES)
34        $(MAKEINFO) $(PROJECT).texi
35
36dvi: dirs $(PROJECT).dvi
37ps: dirs $(PROJECT).ps
38pdf: dirs $(PROJECT).pdf
39       
40$(PROJECT).pdf: $(FILES)
41        $(TEXI2PDF) $(PROJECT).texi
42        cp $(PROJECT).pdf $(WWW_INSTALL)/$(PROJECT)
43       
44$(PROJECT).ps: $(PROJECT).dvi
45        dvips -o $(PROJECT).ps $(PROJECT).dvi
46        cp $(PROJECT).ps $(WWW_INSTALL)/$(PROJECT)
47
48$(PROJECT).dvi: $(FILES)
49        $(TEXI2DVI) $(PROJECT).texi
50        cp $(PROJECT).dvi $(WWW_INSTALL)/$(PROJECT)
51
52html: dirs $(FILES)
53        -mkdir -p $(WWW_INSTALL)/$(PROJECT)
54        $(TEXI2WWW) $(TEXI2WWW_ARGS) -dir $(WWW_INSTALL)/$(PROJECT) \
55            $(PROJECT).texi
56
57clean:
58        rm -f *.o $(PROG) *.txt core $(PROJECT).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_m68k c_m68k-*
62        rm -f intr.t $(GENERATED_FILES)
63        rm -f wksheets.t wksheets_NOTIMES.t
64        rm -f timeMVME136_.t timeMVME136_.texi
65        rm -f *.fixed _* timing.t
66
67#
68#  Chapters which get automatic processing
69#
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 Extend Byte to Long Instruction" \
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
87## Interrupt Chapter:
88##  1.  Replace Times and Sizes
89##  2.  Build Node Structure
90#
91#intr.texi: intr.t MVME136_TIMES
92#       ${REPLACE} -p MVME136_TIMES intr.t
93#       mv intr.t.fixed intr.texi
94
95# Interrupt Chapter:
96#  1.  Replace Times and Sizes
97#  2.  Build Node Structure
98intr.t: intr_NOTIMES.t MVME136_TIMES
99        ${REPLACE} -p MVME136_TIMES intr_NOTIMES.t
100        mv intr_NOTIMES.t.fixed intr.t
101
102intr.texi: intr.t Makefile
103        $(BMENU) -p "Memory Model Flat Memory Model" \
104            -u "Top" \
105            -n "Default Fatal Error Processing" ${*}.t
106
107fatalerr.texi: fatalerr.t Makefile
108        $(BMENU) -p "Interrupt Processing Interrupt Stack" \
109            -u "Top" \
110            -n "Board Support Packages" ${*}.t
111
112bsp.texi: bsp.t Makefile
113        $(BMENU) -p "Default Fatal Error Processing Default Fatal Error Handler Operations" \
114            -u "Top" \
115            -n "Processor Dependent Information Table" ${*}.t
116
117cputable.texi: cputable.t Makefile
118        $(BMENU) -p "Board Support Packages Processor Initialization" \
119            -u "Top" \
120            -n "Memory Requirements" ${*}.t
121
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 MVME136_TIMES
132        ${REPLACE} -p MVME136_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 "MVME136 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
157timeMVME136_.t: ../../common/timetbl.t timeMVME136.t
158        cat timeMVME136.t ../../common/timetbl.t             >timeMVME136_.t
159        @echo                                               >>timeMVME136_.t
160        @echo "@tex"                                        >>timeMVME136_.t
161        @echo "\\global\\advance \\smallskipamount by 4pt"  >>timeMVME136_.t
162        @echo "@end tex"                                    >>timeMVME136_.t
163        ${REPLACE} -p MVME136_TIMES timeMVME136_.t
164        mv timeMVME136_.t.fixed timeMVME136_.t
165
166timeMVME136.texi: timeMVME136_.t Makefile
167        $(BMENU) -p "Timing Specification Terminology" \
168            -u "Top" \
169            -n "Command and Variable Index" timeMVME136_.t
170        mv timeMVME136_.texi timeMVME136.texi
Note: See TracBrowser for help on using the repository browser.