|
|
1.1 root 1: M4 = @m4
2:
3: MHOME = /usr/lib/monk
4:
5: INSDIR = $(MHOME)/db
6:
7: COMPRESS = $(MHOME)/compress -d .
8:
9: FRC =
10:
11: DBS = \
12: acm \
13: attrib \
14: centerpb \
15: cspress \
16: form1 \
17: global \
18: im \
19: kluwer \
20: letter \
21: macro \
22: memo \
23: model \
24: research \
25: rp \
26: song \
27: tc \
28: tm
29:
30: CDBS = \
31: acm.comp \
32: centerpb.comp \
33: cspress.comp \
34: form1.comp \
35: global.comp \
36: im.comp \
37: kluwer.comp \
38: letter.comp \
39: memo.comp \
40: model.comp \
41: research.comp \
42: rp.comp \
43: song.comp \
44: tc.comp \
45: tm.comp
46:
47: all: doc comp
48:
49: doc: $(DBS)
50:
51: comp: $(CDBS)
52:
53: acm: \
54: acm.m \
55: global.h \
56: macro.h \
57: titlebox.h \
58: titlebox.m \
59: m4.h \
60: $(FRC)
61: $(M4) m4.h acm.m | sed \
62: -e 's/^|||*/|/' \
63: -e '/^|[| ]*$$/d' \
64: -e 's/\\n\([0-9]\)/\1/g' \
65: -e 's/\\n\$$i/$$i/g' \
66: -e 's/^[ ]*//' \
67: > acm
68: @echo "acm updated"
69:
70: acm.comp: acm attrib $(FRC)
71: $(COMPRESS) acm
72:
73: attrib: \
74: attrib.m \
75: list.h \
76: macro.h \
77: style.h \
78: m4.h \
79: $(FRC)
80: $(M4) m4.h attrib.m | sed \
81: -e "s/^\([.']\)[ ]*\([a-z][a-z]\) /\1\2/" \
82: -e "s/^\([.']\)[ ]*/\1/" \
83: -e '/^.\\"/d' \
84: -e 's/[ ]*\\".*//' \
85: -e 's/^|||*/|/' \
86: -e '/^|[| ]*$$/d' \
87: -e 's/\\n\([0-9]\)/\1/g' \
88: -e 's/\\n\$$i/$$i/g' \
89: -e 's/^[ ]*//' \
90: > attrib
91: @echo "attrib updated"
92:
93: centerpb: \
94: centerpb.m \
95: macro.h \
96: m4.h \
97: $(FRC)
98: $(M4) m4.h centerpb.m | sed \
99: -e 's/^|||*/|/' \
100: -e '/^|[| ]*$$/d' \
101: -e 's/\\n\([0-9]\)/\1/g' \
102: -e 's/\\n\$$i/$$i/g' \
103: -e 's/^[ ]*//' \
104: > centerpb
105: @echo "centerpb updated"
106:
107: centerpb.comp: centerpb attrib $(FRC)
108: $(COMPRESS) centerpb
109:
110: cspress: \
111: cspress.m \
112: global.h \
113: macro.h \
114: titlebox.h \
115: titlebox.m \
116: m4.h \
117: $(FRC)
118: $(M4) m4.h cspress.m | sed \
119: -e 's/^|||*/|/' \
120: -e '/^|[| ]*$$/d' \
121: -e 's/\\n\([0-9]\)/\1/g' \
122: -e 's/\\n\$$i/$$i/g' \
123: -e 's/^[ ]*//' \
124: > cspress
125: @echo "cspress updated"
126:
127: cspress.comp: cspress attrib $(FRC)
128: $(COMPRESS) cspress
129:
130: form1: \
131: form1.m \
132: global.h \
133: macro.h \
134: m4.h \
135: $(FRC)
136: $(M4) m4.h form1.m | sed \
137: -e 's/^|||*/|/' \
138: -e '/^|[| ]*$$/d' \
139: -e 's/\\n\([0-9]\)/\1/g' \
140: -e 's/\\n\$$i/$$i/g' \
141: -e 's/^[ ]*//' \
142: > form1
143: @echo "form1 updated"
144:
145: form1.comp: form1 attrib $(FRC)
146: $(COMPRESS) form1
147:
148: global: \
149: global.m \
150: envir.h \
151: envir.m \
152: global.h \
153: index.m \
154: list.h \
155: list.m \
156: macro.h \
157: preproc.h \
158: preproc.m \
159: section.h \
160: section.m \
161: set.m \
162: special.m \
163: style.h \
164: style.m \
165: t_contents.m \
166: whitespace.m \
167: m4.h \
168: $(FRC)
169: $(M4) m4.h global.m | sed \
170: -e 's/^|||*/|/' \
171: -e '/^|[| ]*$$/d' \
172: -e 's/\\n\([0-9]\)/\1/g' \
173: -e 's/\\n\$$i/$$i/g' \
174: -e 's/^[ ]*//' \
175: > global
176: @echo "global updated"
177:
178: global.comp: attrib global macro $(FRC)
179: $(COMPRESS)
180:
181: im: \
182: im.m \
183: coversheet.h \
184: coversheet.m \
185: envir.h \
186: macro.h \
187: preproc.h \
188: titlebox.h \
189: titlebox.m \
190: m4.h \
191: $(FRC)
192: $(M4) m4.h im.m | sed \
193: -e 's/^|||*/|/' \
194: -e '/^|[| ]*$$/d' \
195: -e 's/\\n\([0-9]\)/\1/g' \
196: -e 's/\\n\$$i/$$i/g' \
197: -e 's/^[ ]*//' \
198: > im
199: @echo "im updated"
200:
201: im.comp: im attrib $(FRC)
202: $(COMPRESS) im
203:
204: kluwer: \
205: kluwer.m \
206: global.h \
207: macro.h \
208: section.h \
209: m4.h \
210: $(FRC)
211: $(M4) m4.h kluwer.m | sed \
212: -e 's/^|||*/|/' \
213: -e '/^|[| ]*$$/d' \
214: -e 's/\\n\([0-9]\)/\1/g' \
215: -e 's/\\n\$$i/$$i/g' \
216: -e 's/^[ ]*//' \
217: > kluwer
218: @echo "kluwer updated"
219:
220: kluwer.comp: kluwer attrib $(FRC)
221: $(COMPRESS) kluwer
222:
223: letter: \
224: letter.m \
225: macro.h \
226: m4.h \
227: $(FRC)
228: $(M4) m4.h letter.m | sed \
229: -e 's/^|||*/|/' \
230: -e '/^|[| ]*$$/d' \
231: -e 's/\\n\([0-9]\)/\1/g' \
232: -e 's/\\n\$$i/$$i/g' \
233: -e 's/^[ ]*//' \
234: > letter
235: @echo "letter updated"
236:
237: letter.comp: letter attrib $(FRC)
238: $(COMPRESS) letter
239:
240: macro: \
241: macro.m \
242: macro.h \
243: style.h \
244: m4.h \
245: $(FRC)
246: $(M4) m4.h macro.m | sed \
247: -e "s/^\([.']\)[ ]*\([a-z][a-z]\) /\1\2/" \
248: -e "s/^\([.']\)[ ]*/\1/" \
249: -e '/^.\\"/d' \
250: -e 's/[ ]*\\".*//' \
251: -e 's/^|||*/|/' \
252: -e '/^|[| ]*$$/d' \
253: -e 's/\\n\([0-9]\)/\1/g' \
254: -e 's/\\n\$$i/$$i/g' \
255: -e 's/^[ ]*//' \
256: > macro
257: @echo "macro updated"
258:
259: memo: \
260: memo.m \
261: macro.h \
262: titlebox.h \
263: titlebox.m \
264: m4.h \
265: $(FRC)
266: $(M4) m4.h memo.m | sed \
267: -e 's/^|||*/|/' \
268: -e '/^|[| ]*$$/d' \
269: -e 's/\\n\([0-9]\)/\1/g' \
270: -e 's/\\n\$$i/$$i/g' \
271: -e 's/^[ ]*//' \
272: > memo
273: @echo "memo updated"
274:
275: memo.comp: memo attrib $(FRC)
276: $(COMPRESS) memo
277:
278: model: \
279: model.m \
280: global.h \
281: macro.h \
282: titlebox.h \
283: titlebox.m \
284: m4.h \
285: $(FRC)
286: $(M4) m4.h model.m | sed \
287: -e 's/^|||*/|/' \
288: -e '/^|[| ]*$$/d' \
289: -e 's/\\n\([0-9]\)/\1/g' \
290: -e 's/\\n\$$i/$$i/g' \
291: -e 's/^[ ]*//' \
292: > model
293: @echo "model updated"
294:
295: model.comp: model attrib $(FRC)
296: $(COMPRESS) model
297:
298: research: \
299: research.m \
300: global.h \
301: macro.h \
302: m4.h \
303: $(FRC)
304: $(M4) m4.h research.m | sed \
305: -e 's/^|||*/|/' \
306: -e '/^|[| ]*$$/d' \
307: -e 's/\\n\([0-9]\)/\1/g' \
308: -e 's/\\n\$$i/$$i/g' \
309: -e 's/^[ ]*//' \
310: > research
311: @echo "research updated"
312:
313: research.comp: research attrib $(FRC)
314: $(COMPRESS) research
315:
316: rp: \
317: rp.m \
318: macro.h \
319: titlebox.h \
320: titlebox.m \
321: m4.h \
322: $(FRC)
323: $(M4) m4.h rp.m | sed \
324: -e 's/^|||*/|/' \
325: -e '/^|[| ]*$$/d' \
326: -e 's/\\n\([0-9]\)/\1/g' \
327: -e 's/\\n\$$i/$$i/g' \
328: -e 's/^[ ]*//' \
329: > rp
330: @echo "rp updated"
331:
332: rp.comp: rp attrib $(FRC)
333: $(COMPRESS) rp
334:
335: song: \
336: song.m \
337: global.h \
338: m4.h \
339: $(FRC)
340: $(M4) m4.h song.m | sed \
341: -e 's/^|||*/|/' \
342: -e '/^|[| ]*$$/d' \
343: -e 's/\\n\([0-9]\)/\1/g' \
344: -e 's/\\n\$$i/$$i/g' \
345: -e 's/^[ ]*//' \
346: > song
347: @echo "song updated"
348:
349: song.comp: song attrib $(FRC)
350: $(COMPRESS) song
351:
352: tc: \
353: tc.m \
354: coversheet.h \
355: coversheet.m \
356: envir.h \
357: macro.h \
358: preproc.h \
359: titlebox.h \
360: titlebox.m \
361: m4.h \
362: $(FRC)
363: $(M4) m4.h tc.m | sed \
364: -e 's/^|||*/|/' \
365: -e '/^|[| ]*$$/d' \
366: -e 's/\\n\([0-9]\)/\1/g' \
367: -e 's/\\n\$$i/$$i/g' \
368: -e 's/^[ ]*//' \
369: > tc
370: @echo "tc updated"
371:
372: tc.comp: tc attrib $(FRC)
373: $(COMPRESS) tc
374:
375: tm: \
376: tm.m \
377: coversheet.h \
378: coversheet.m \
379: envir.h \
380: macro.h \
381: preproc.h \
382: titlebox.h \
383: titlebox.m \
384: m4.h \
385: $(FRC)
386: $(M4) m4.h tm.m | sed \
387: -e 's/^|||*/|/' \
388: -e '/^|[| ]*$$/d' \
389: -e 's/\\n\([0-9]\)/\1/g' \
390: -e 's/\\n\$$i/$$i/g' \
391: -e 's/^[ ]*//' \
392: > tm
393: @echo "tm updated"
394:
395: tm.comp: tm attrib $(FRC)
396: $(COMPRESS) tm
397:
398: clean:
399:
400: clobber: clean
401: -rm -f $(DBS) $(CDBS)
402:
403: install: all
404: cp $(DBS) $(CDBS) $(INSDIR)
405:
406: debug: doc
407: cp $(DBS) $(INSDIR)
408:
409: summary: $(DBS)
410: @for i in $(DBS) ; \
411: do \
412: echo -e "\n\n$$i doc type\n" ; \
413: grep '|comment<summary: ' $$i | \
414: sed -e 's/|comment<summary: \(.*\)>/\1/' | sort -u ; \
415: done > summary
416: @echo -e '\n' >> summary
417: @cat todo.m >> summary
418: @echo summary updated
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.