|
|
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: attrib.def \
13: cspress.doc \
14: global.def \
15: letter.doc \
16: macro.def \
17: model.doc \
18: rp.doc \
19: song.doc \
20: tm.doc
21:
22: CDBS = \
23: cspress.comp \
24: global.comp \
25: letter.comp \
26: macro.comp \
27: model.comp \
28: rp.comp \
29: song.comp \
30: tm.comp
31:
32: all: $(DBS) $(CDBS)
33:
34: attrib.def: \
35: attrib.m \
36: macro.h \
37: list.h \
38: style.h \
39: whitespace.h \
40: m4.h \
41: $(FRC)
42: $(M4) m4.h attrib.m | sed \
43: -e "s/^\([.']\)[ ]*\([a-z][a-z]\) /\1\2/" \
44: -e "s/^\([.']\)[ ]*/\1/" \
45: -e '/^.\\"/d' \
46: -e 's/[ ]*\\".*//' \
47: -e 's/^|||*/|/' \
48: -e '/^|[| ]*$$/d' \
49: -e 's/\\n\([0-9]\)/\1/g' \
50: -e 's/\\n\$$i/$$i/g' \
51: -e 's/^[ ]*//' \
52: > attrib.def
53: @echo "attrib.def updated"
54:
55: cspress.doc: \
56: cspress.m \
57: envir.h \
58: preproc.h \
59: monk.h \
60: macro.h \
61: titlebox.h \
62: titlebox.m \
63: m4.h \
64: $(FRC)
65: $(M4) m4.h cspress.m | sed \
66: -e 's/^|||*/|/' \
67: -e '/^|[| ]*$$/d' \
68: -e 's/\\n\([0-9]\)/\1/g' \
69: -e 's/\\n\$$i/$$i/g' \
70: -e 's/^[ ]*//' \
71: > cspress.doc
72: @echo "cspress.doc updated"
73:
74: cspress.comp: cspress.doc attrib.def global.def macro.def $(FRC)
75: $(COMPRESS) cspress
76:
77: global.def: \
78: global.m \
79: global.h \
80: monk.h \
81: macro.h \
82: style.h \
83: style.m \
84: section.h \
85: section.m \
86: envir.h \
87: envir.m \
88: preproc.h \
89: preproc.m \
90: list.h \
91: list.m \
92: refs.h \
93: refs.m \
94: whitespace.h \
95: whitespace.m \
96: m4.h \
97: $(FRC)
98: $(M4) m4.h global.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: > global.def
105: @echo "global.def updated"
106:
107: global.comp: attrib.def global.def macro.def $(FRC)
108: $(COMPRESS)
109:
110: letter.doc: \
111: letter.m \
112: monk.h \
113: macro.h \
114: m4.h \
115: $(FRC)
116: $(M4) m4.h letter.m | sed \
117: -e 's/^|||*/|/' \
118: -e '/^|[| ]*$$/d' \
119: -e 's/\\n\([0-9]\)/\1/g' \
120: -e 's/\\n\$$i/$$i/g' \
121: -e 's/^[ ]*//' \
122: > letter.doc
123: @echo "letter.doc updated"
124:
125: letter.comp: letter.doc attrib.def global.def macro.def $(FRC)
126: $(COMPRESS) letter
127:
128: macro.def: \
129: macro.m \
130: macro.h \
131: m4.h \
132: $(FRC)
133: $(M4) m4.h macro.m | sed \
134: -e "s/^\([.']\)[ ]*\([a-z][a-z]\) /\1\2/" \
135: -e "s/^\([.']\)[ ]*/\1/" \
136: -e '/^.\\"/d' \
137: -e 's/[ ]*\\".*//' \
138: -e 's/^|||*/|/' \
139: -e '/^|[| ]*$$/d' \
140: -e 's/\\n\([0-9]\)/\1/g' \
141: -e 's/\\n\$$i/$$i/g' \
142: -e 's/^[ ]*//' \
143: > macro.def
144: @echo "macro.def updated"
145:
146: macro.comp: macro.def attrib.def global.def macro.def $(FRC)
147: $(COMPRESS)
148:
149: model.doc: \
150: model.m \
151: envir.h \
152: preproc.h \
153: monk.h \
154: macro.h \
155: refs.h \
156: titlebox.h \
157: titlebox.m \
158: m4.h \
159: $(FRC)
160: $(M4) m4.h model.m | sed \
161: -e 's/^|||*/|/' \
162: -e '/^|[| ]*$$/d' \
163: -e 's/\\n\([0-9]\)/\1/g' \
164: -e 's/\\n\$$i/$$i/g' \
165: -e 's/^[ ]*//' \
166: > model.doc
167: @echo "model.doc updated"
168:
169: model.comp: model.doc attrib.def global.def macro.def $(FRC)
170: $(COMPRESS) model
171:
172: rp.doc: \
173: rp.m \
174: envir.h \
175: preproc.h \
176: monk.h \
177: macro.h \
178: titlebox.h \
179: titlebox.m \
180: m4.h \
181: $(FRC)
182: $(M4) m4.h rp.m | sed \
183: -e 's/^|||*/|/' \
184: -e '/^|[| ]*$$/d' \
185: -e 's/\\n\([0-9]\)/\1/g' \
186: -e 's/\\n\$$i/$$i/g' \
187: -e 's/^[ ]*//' \
188: > rp.doc
189: @echo "rp.doc updated"
190:
191: rp.comp: rp.doc attrib.def global.def macro.def $(FRC)
192: $(COMPRESS) rp
193:
194: song.doc: \
195: song.m \
196: monk.h \
197: m4.h \
198: $(FRC)
199: $(M4) m4.h song.m | sed \
200: -e 's/^|||*/|/' \
201: -e '/^|[| ]*$$/d' \
202: -e 's/\\n\([0-9]\)/\1/g' \
203: -e 's/\\n\$$i/$$i/g' \
204: -e 's/^[ ]*//' \
205: > song.doc
206: @echo "song.doc updated"
207:
208: song.comp: song.doc attrib.def global.def macro.def $(FRC)
209: $(COMPRESS) song
210:
211: tm.doc: \
212: tm.m \
213: envir.h \
214: preproc.h \
215: monk.h \
216: macro.h \
217: titlebox.h \
218: titlebox.m \
219: coversheet.h \
220: coversheet.m \
221: m4.h \
222: $(FRC)
223: $(M4) m4.h tm.m | sed \
224: -e 's/^|||*/|/' \
225: -e '/^|[| ]*$$/d' \
226: -e 's/\\n\([0-9]\)/\1/g' \
227: -e 's/\\n\$$i/$$i/g' \
228: -e 's/^[ ]*//' \
229: > tm.doc
230: @echo "tm.doc updated"
231:
232: tm.comp: tm.doc attrib.def global.def macro.def $(FRC)
233: $(COMPRESS) tm
234:
235: clean:
236:
237: clobber: clean
238: -rm -f $(DBS) $(CDBS)
239:
240: install: all
241: cp $(DBS) $(CDBS) $(INSDIR)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.