-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile-subdirs
233 lines (199 loc) · 3.96 KB
/
Makefile-subdirs
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
#; Support for ACL2 Community Books
#; Copyright (C) 2014, Regents of the University of Texas
#; This program is free software; you can redistribute it and/or
#; modify it under the terms of Version 2 of the GNU General Public
#; License as published by the Free Software Foundation.
#; This program is distributed in the hope that it will be useful,
#; but WITHOUT ANY WARRANTY; without even the implied warranty of
#; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#; GNU General Public License for more details.
#; You should have received a copy of the GNU General Public License
#; along with this program; if not, write to the Free Software
#; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#; Written by: Matt Kaufmann and J Strother Moore
#; email: [email protected] and [email protected]
#; Department of Computer Sciences
#; University of Texas at Austin
#; Austin, TX 78712-1188 U.S.A.
# This file is to be included in other Makefiles. The include should be
# preceded by a definition of DIRS, the list of subdirectories.
.PHONY: top
top:
@my_status=0
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; $(MAKE)) ; \
my_status=$$? ; \
if [ $$my_status -ne 0 ] ; then exit 1 ; fi ; \
fi \
done
@exit $$my_status
.PHONY: fasl
fasl: fasl-more
.PHONY: fasl-more
fasl-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) fasl ; \
cd ..) ; \
fi \
done
.PHONY: fas
fas: fas-more
.PHONY: fas-more
fas-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) fas ; \
cd ..) ; \
fi \
done
.PHONY: o
o: o-more
.PHONY: o-more
o-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) o ; \
cd ..) ; \
fi \
done
.PHONY: sparcf
sparcf: sparcf-more
.PHONY: sparcf-more
sparcf-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) sparcf ; \
cd ..) ; \
fi \
done
.PHONY: ufsl
ufsl: ufsl-more
.PHONY: ufsl-more
ufsl-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) ufsl ; \
cd ..) ; \
fi \
done
.PHONY: 64ufasl
64ufasl: 64ufasl-more
.PHONY: 64ufasl-more
64ufasl-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) 64ufasl ; \
cd ..) ; \
fi \
done
.PHONY: x86f
x86f: x86f-more
.PHONY: x86f-more
x86f-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) x86f ; \
cd ..) ; \
fi \
done
.PHONY: dfsl
dfsl: dfsl-more
.PHONY: dfsl-more
dfsl-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) dfsl ; \
cd ..) ; \
fi \
done
.PHONY: d64fsl
d64fsl: d64fsl-more
.PHONY: d64fsl-more
d64fsl-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) d64fsl ; \
cd ..) ; \
fi \
done
.PHONY: dx64fsl
dx64fsl: dx64fsl-more
.PHONY: dx64fsl-more
dx64fsl-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) dx64fsl ; \
cd ..) ; \
fi \
done
.PHONY: lx64fsl
lx64fsl: lx64fsl-more
.PHONY: lx64fsl-more
lx64fsl-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) lx64fsl ; \
cd ..) ; \
fi \
done
.PHONY: lx32fsl
lx32fsl: lx32fsl-more
.PHONY: lx32fsl-more
lx32fsl-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) lx32fsl ; \
cd ..) ; \
fi \
done
.PHONY: clean
clean: clean-more
.PHONY: clean-more
clean-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) clean ; \
cd ..) ; \
fi \
done
.PHONY: chk-include-book-worlds
chk-include-book-worlds: chk-include-book-worlds-more
.PHONY: chk-include-book-worlds-more
chk-include-book-worlds-more:
@for dir in $(DIRS) ; \
do \
if [ -f $$dir/Makefile ]; then \
(cd $$dir ; \
$(MAKE) chk-include-book-worlds ; \
cd ..) ; \
fi \
done