source: rtems/doc/supplements/m68k/Makefile @ 62cd76e

4.104.114.84.95
Last change on this file since 62cd76e was 62cd76e, checked in by Joel Sherrill <joel.sherrill@…>, on 10/19/98 at 21:49:36

Moved things around so html and clean were above stanzas which generate
chapters.

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