summaryrefslogtreecommitdiffstats
path: root/doc/posix1003.1/Makefile
blob: 3337910981803a4a18d154b35939421251ebe388 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
#
#  COPYRIGHT (c) 1988-1998.
#  On-Line Applications Research Corporation (OAR).
#  All rights reserved.
#
#  $Id$
#

PROJECT=posix1003_1
DISTRIBUTION_LEVEL=partners

include ../Make.config

all: html info ps

dirs:
	$(make-dirs)

COMMON_FILES=../common/cpright.texi ../common/setup.texi

GENERATED_FILES=ch01.texi ch02.texi ch03.texi ch04.texi ch05.texi \
                ch06.texi ch07.texi ch08.texi ch09.texi ch10.texi \
                ch11.texi ch12.texi ch13.texi ch14.texi ch15.texi \
                ch16.texi ch17.texi ch18.texi ch19.t ch19.texi

FILES= $(PROJECT).texi \
  preface.texi $(GENERATED_FILES)

INFOFILES=$(wildcard $(PROJECT) $(PROJECT)-*)

info: dirs $(PROJECT)
	#cp $(wildcard $(PROJECT) $(PROJECT)-*) $(INFO_INSTALL)
	cp $(PROJECT) $(INFO_INSTALL)

$(PROJECT): $(FILES)
	$(MAKEINFO) $(PROJECT).texi

dvi: $(PROJECT).dvi
ps: dirs $(PROJECT).ps
	
$(PROJECT).ps: $(PROJECT).dvi
	dvips -o $(PROJECT).ps $(PROJECT).dvi
	cp $(PROJECT).ps $(PS_INSTALL)

# run texi2dvi twice to generate the xref's properly.
$(PROJECT).dvi: $(FILES)
	$(TEXI2DVI) -v $(PROJECT).texi
	texi2dvi $(PROJECT).texi

ch01.texi: ch01.t
	$(BMENU) -c -p "Preface" \
	    -u "Top" \
	    -n "Terminology and General Requirements" ${*}.t

ch02.texi: ch02.t
	$(BMENU) -c -p "Conformance" \
	    -u "Top" \
	    -n "Process Primitives" ${*}.t

ch03.texi: ch03.t
	$(BMENU) -c -p "Execution-Time Symbolic Constants for Portability Specifications" \
	    -u "Top" \
	    -n "Process Environment" ${*}.t

ch04.texi: ch04.t
	$(BMENU) -c -p "Delay Process Execution" \
	    -u "Top" \
	    -n "Files and Directories" ${*}.t

ch05.texi: ch05.t
	$(BMENU) -c -p "Get Configurable System Variables" \
	    -u "Top" \
	    -n "Input and Output Primitives" ${*}.t

ch06.texi: ch06.t
	$(BMENU) -c -p "Get Configurable Pathname Variables" \
	    -u "Top" \
	    -n "Device- and Class-Specific Functions" ${*}.t

ch07.texi: ch07.t
	$(BMENU) -c -p " Asynchronous File Synchronization" \
	    -u "Top" \
	    -n "Language-Specific Services for the C Programming Language" ${*}.t

ch08.texi: ch08.t
	$(BMENU) -c -p "Set Foreground Process Group ID" \
	    -u "Top" \
	    -n "System Databases" ${*}.t

ch09.texi: ch09.t
	$(BMENU) -c -p "Pseudo-Random Sequence Generation Functions" \
	    -u "Top" \
	    -n "Data Interchange Format" ${*}.t

ch10.texi: ch10.t
	$(BMENU) -c -p "User Database Access" \
	    -u "Top" \
	    -n "Synchronization" ${*}.t

ch11.texi: ch11.t
	$(BMENU) -c -p "Multiple Volumes" \
	    -u "Top" \
	    -n "Memory Management" ${*}.t

ch12.texi: ch12.t
	$(BMENU) -c -p "Waiting on a Condition" \
	    -u "Top" \
	    -n "Execution Scheduling" ${*}.t

ch13.texi: ch13.t
	$(BMENU) -c -p "Remove a Shared Memory Object" \
	    -u "Top" \
	    -n "Clocks and Timers" ${*}.t

ch14.texi: ch14.t
	$(BMENU) -c -p "Change the Priority Ceiling of a Mutex" \
	    -u "Top" \
	    -n "Message Passing" ${*}.t

ch15.texi: ch15.t
	$(BMENU) -c -p "High Resolution Sleep" \
	    -u "Top" \
	    -n "Thread Management" ${*}.t

ch16.texi: ch16.t
	$(BMENU) -c -p "Get Message Queue Attributes" \
	    -u "Top" \
	    -n "Thread-Specific Data" ${*}.t

ch17.texi: ch17.t
	$(BMENU) -c -p "Dynamic Package Initialization" \
	    -u "Top" \
	    -n "Thread Cancellation" ${*}.t

ch18.texi: ch18.t
	$(BMENU) -c -p "Thread-Specific Data Key Deletion" \
	    -u "Top" \
	    -n "Compliance Summary" ${*}.t

ch19.t: ch01.t ch02.t ch03.t ch04.t ch05.t ch06.t ch07.t ch08.t ch09.t \
        ch10.t ch11.t ch12.t ch13.t ch14.t ch15.t ch16.t ch17.t ch18.t \
	summarize
	./summarize >ch19.t

ch19.texi: ch19.t
	$(BMENU) -c -p "List of Cancellation Points" \
	    -u "Top" \
	    -n "Command and Variable Index" ${*}.t
	
html: dirs $(FILES)
	-mkdir -p $(WWW_INSTALL)/$(PROJECT)
	$(TEXI2WWW) $(TEXI2WWW_ARGS) -dir $(WWW_INSTALL)/$(PROJECT) \
 	    $(PROJECT).texi

clean:
	rm -f *.o $(PROG) *.txt core 
	rm -f *.dvi *.ps *.log *.aux *.cp *.fn *.ky *.pg *.toc *.tp *.vr $(BASE)
	rm -f $(PROJECT) $(PROJECT)-* $(GENERATED_FILES)
	rm -f *.fixed _*