1 | # |
---|
2 | # COPYRIGHT (c) 1988-1998. |
---|
3 | # On-Line Applications Research Corporation (OAR). |
---|
4 | # All rights reserved. |
---|
5 | # |
---|
6 | # $Id$ |
---|
7 | # |
---|
8 | |
---|
9 | PROJECT=ada_user |
---|
10 | |
---|
11 | include ../Make.config |
---|
12 | |
---|
13 | all: html info ps pdf |
---|
14 | |
---|
15 | COMMON_FILES=../common/cpright.texi ../user/bsp.texi ../user/clock.texi \ |
---|
16 | ../user/concepts.texi ../user/conf.texi ../user/dirstat.texi \ |
---|
17 | ../user/dpmem.texi ../user/event.texi \ |
---|
18 | ../user/fatal.texi ../user/glossary.texi ../user/init.texi \ |
---|
19 | ../user/intr.texi ../user/io.texi ../user/mp.texi ../user/msg.texi \ |
---|
20 | ../user/overview.texi ../user/part.texi ../user/preface.texi \ |
---|
21 | ../user/region.texi ../user/rtmon.texi ../user/schedule.texi \ |
---|
22 | ../user/sem.texi ../user/signal.texi ../user/task.texi \ |
---|
23 | ../user/timer.texi ../user/userext.texi |
---|
24 | FILES= ada_user.texi example.texi $(COMMON_FILES) |
---|
25 | |
---|
26 | LINKFILES=../user/rtemspie.eps ../user/rtemspie.pdf \ |
---|
27 | ../user/states.eps ../user/states.pdf |
---|
28 | |
---|
29 | dirs: links |
---|
30 | $(make-dirs) |
---|
31 | |
---|
32 | links: |
---|
33 | cp $(LINKFILES) . |
---|
34 | |
---|
35 | INFOFILES=$(wildcard $(PROJECT) $(PROJECT)-*) |
---|
36 | |
---|
37 | info: dirs $(PROJECT) |
---|
38 | cp $(shell ls -1 $(PROJECT) $(PROJECT)-* 2>/dev/null) $(INFO_INSTALL) |
---|
39 | |
---|
40 | $(PROJECT): $(FILES) |
---|
41 | $(MAKEINFO) $(PROJECT).texi |
---|
42 | |
---|
43 | dvi: dirs $(PROJECT).dvi |
---|
44 | ps: dirs $(PROJECT).ps |
---|
45 | pdf: dirs $(PROJECT).pdf |
---|
46 | |
---|
47 | $(PROJECT).pdf: $(FILES) |
---|
48 | $(TEXI2PDF) $(PROJECT).texi |
---|
49 | cp $(PROJECT).pdf $(WWW_INSTALL)/$(PROJECT) |
---|
50 | |
---|
51 | $(PROJECT).ps: dirs $(PROJECT).dvi |
---|
52 | dvips -o $(PROJECT).ps $(PROJECT).dvi |
---|
53 | cp $(PROJECT).ps $(WWW_INSTALL)/$(PROJECT) |
---|
54 | |
---|
55 | $(PROJECT).dvi: $(FILES) |
---|
56 | $(TEXI2DVI) $(PROJECT).texi |
---|
57 | cp $(PROJECT).dvi $(WWW_INSTALL)/$(PROJECT) |
---|
58 | |
---|
59 | html: dirs $(FILES) |
---|
60 | -mkdir -p $(WWW_INSTALL)/$(PROJECT) |
---|
61 | cp ../user/rtemsarc.gif ../user/rtemspie.gif ../user/states.gif \ |
---|
62 | $(WWW_INSTALL)/$(PROJECT) |
---|
63 | $(TEXI2WWW) $(TEXI2WWW_ARGS) -dir $(WWW_INSTALL)/$(PROJECT) \ |
---|
64 | $(PROJECT).texi |
---|
65 | |
---|
66 | # This is one of the few document directories without its own eps and pdf |
---|
67 | # files. Thus it can safely remove *.pdf and *.eps. |
---|
68 | clean: |
---|
69 | rm -f *.o $(PROG) *.txt core *.html *.pdf *.eps |
---|
70 | rm -f *.dvi *.ps *.log *.aux *.cp *.fn *.ky *.pg *.toc *.tp *.vr $(BASE) |
---|
71 | rm -f $(PROJECT) $(PROJECT)-* _* |
---|
72 | rm -f *.cps *.cpss *.fns *.jkys *.pgs *.tps *.vrs |
---|
73 | |
---|