source: rtems/doc/bsp_howto/Makefile @ bc950e87

4.104.114.84.95
Last change on this file since bc950e87 was bc950e87, checked in by Joel Sherrill <joel.sherrill@…>, on 11/19/98 at 16:02:06

Applied updates from remote work while doing class.

  • Property mode set to 100644
File size: 3.0 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=bsp_howto
10DISTRIBUTION_LEVEL=public
11
12include ../Make.config
13
14all: html info ps
15
16dirs:
17        $(make-dirs)
18
19COMMON_FILES=../common/cpright.texi ../common/setup.texi
20
21GENERATED_FILES= \
22    intro.texi target.texi makefiles.texi linkcmds.texi support.texi \
23    init.texi console.texi clock.texi timer.texi rtc.texi nvmem.texi \
24    network.texi shmsupp.texi analog.texi discrete.texi
25
26FILES=$(PROJECT).texi $(GENERATED_FILES)
27
28INFOFILES=$(wildcard $(PROJECT) $(PROJECT)-*)
29
30info: dirs $(PROJECT)
31        #cp $(wildcard $(PROJECT) $(PROJECT)-*) $(INFO_INSTALL)
32        # cp $(PROJECT) $(INFO_INSTALL)
33
34$(PROJECT): $(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# run texi2dvi twice to generate the xref's properly.
45$(PROJECT).dvi: $(FILES)
46        $(TEXI2DVI) $(PROJECT).texi
47        texi2dvi $(PROJECT).texi
48
49html: dirs $(FILES)
50        -mkdir -p $(WWW_INSTALL)/$(PROJECT)
51        $(TEXI2WWW) $(TEXI2WWW_ARGS) -dir $(WWW_INSTALL)/$(PROJECT) \
52            $(PROJECT).texi
53
54clean:
55        rm -f *.o $(PROG) *.txt core
56        rm -f *.dvi *.ps *.log *.aux *.cp *.fn *.ky *.pg *.toc *.tp *.vr $(BASE)
57        rm -f $(PROJECT) $(PROJECT)-* $(GENERATED_FILES)
58        rm -f *.fixed _* network.t
59
60#
61#  Grab the chapter on writing a network device driver.
62#
63network.t:
64        ln -s ../networking/driver.t  network.t
65
66
67#
68#  Process Automatically Generated Files
69#
70
71intro.texi: intro.t Makefile
72        $(BMENU) -p "Top" \
73            -u "Top" \
74            -n "Target Dependent Files" ${*}.t
75
76target.texi: target.t Makefile
77        $(BMENU) -p "Introduction" \
78            -u "Top" \
79            -n "Makefiles" ${*}.t
80
81makefiles.texi: makefiles.t Makefile
82        $(BMENU) -p "Target Dependent Files Board Support Package Structure" \
83            -u "Top" \
84            -n "Linker Script" ${*}.t
85
86linkcmds.texi: linkcmds.t Makefile
87        $(BMENU) -p "Makefiles Creating a New BSP Make Customization File" \
88            -u "Top" \
89            -n "Miscellaneous Support Files" ${*}.t
90
91support.texi: support.t Makefile
92        $(BMENU) -p "Linker Script Initialized Data" \
93            -u "Top" \
94            -n "" ${*}.t
95
96init.texi: init.t Makefile
97        $(BMENU) -p "" \
98            -u "Top" \
99            -n "" ${*}.t
100
101console.texi: console.t Makefile
102        $(BMENU) -p "" \
103            -u "Top" \
104            -n "" ${*}.t
105
106clock.texi: clock.t Makefile
107        $(BMENU) -p "" \
108            -u "Top" \
109            -n "" ${*}.t
110
111timer.texi: timer.t Makefile
112        $(BMENU) -p "" \
113            -u "Top" \
114            -n "" ${*}.t
115
116rtc.texi: rtc.t Makefile
117        $(BMENU) -p "" \
118            -u "Top" \
119            -n "" ${*}.t
120
121nvmem.texi: nvmem.t Makefile
122        $(BMENU) -p "" \
123            -u "Top" \
124            -n "" ${*}.t
125
126network.texi: network.t Makefile
127        $(BMENU) -p "" \
128            -u "Top" \
129            -n "" ${*}.t
130
131shmsupp.texi: shmsupp.t Makefile
132        $(BMENU) -p "" \
133            -u "Top" \
134            -n "" ${*}.t
135
136analog.texi: analog.t Makefile
137        $(BMENU) -p "" \
138            -u "Top" \
139            -n "" ${*}.t
140
141discrete.texi: discrete.t Makefile
142        $(BMENU) -p "" \
143            -u "Top" \
144            -n "" ${*}.t
Note: See TracBrowser for help on using the repository browser.