Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / conf / makefiles / RCS / MH-Makefile,v
1 head    2.16;
2 access;
3 symbols;
4 locks; strict;
5
6
7 2.16
8 date    93.08.27.22.15.49;      author jromine; state Exp;
9 branches;
10 next    2.15;
11
12 2.15
13 date    92.12.03.16.23.40;      author jromine; state Exp;
14 branches;
15 next    2.14;
16
17 2.14
18 date    92.12.02.22.19.13;      author jromine; state Exp;
19 branches;
20 next    2.13;
21
22 2.13
23 date    92.11.18.16.51.59;      author jromine; state Exp;
24 branches;
25 next    2.12;
26
27 2.12
28 date    92.11.06.18.53.55;      author jromine; state Exp;
29 branches;
30 next    2.11;
31
32 2.11
33 date    92.11.02.22.56.13;      author jromine; state Exp;
34 branches;
35 next    2.10;
36
37 2.10
38 date    92.10.29.17.41.35;      author jromine; state Exp;
39 branches;
40 next    2.9;
41
42 2.9
43 date    92.10.29.16.25.20;      author jromine; state Exp;
44 branches;
45 next    2.8;
46
47 2.8
48 date    92.10.16.16.51.06;      author jromine; state Exp;
49 branches;
50 next    2.7;
51
52 2.7
53 date    92.03.03.17.25.21;      author jromine; state Exp;
54 branches;
55 next    2.6;
56
57 2.6
58 date    92.02.06.17.25.23;      author jromine; state Exp;
59 branches;
60 next    2.5;
61
62 2.5
63 date    90.04.08.14.09.51;      author sources; state Exp;
64 branches;
65 next    2.4;
66
67 2.4
68 date    90.04.05.15.39.13;      author sources; state Exp;
69 branches;
70 next    2.3;
71
72 2.3
73 date    90.04.05.15.17.14;      author sources; state Exp;
74 branches;
75 next    2.2;
76
77 2.2
78 date    90.02.21.17.29.01;      author sources; state Exp;
79 branches;
80 next    2.1;
81
82 2.1
83 date    90.02.21.17.05.09;      author sources; state Exp;
84 branches;
85 next    2.0;
86
87 2.0
88 date    89.11.17.15.56.24;      author sources; state Exp;
89 branches;
90 next    1.1;
91
92 1.1
93 date    89.11.17.15.43.15;      author sources; state Exp;
94 branches;
95 next    ;
96
97
98 desc
99 @@
100
101
102 2.16
103 log
104 @make MANDIR
105 @
106 text
107 @##############################################################################
108 #       Instructions to Make, for compilation of MH modules
109 #
110 #       @@(MHWARNING)
111 # @@(#)$Id: MH-Makefile,v 2.15 1992/12/03 16:23:40 jromine Exp jromine $
112 ##############################################################################
113
114 MAKE    =       make DESTDIR=$(DESTDIR) $(MFLAGS) -k
115 SHELL   =       /bin/sh
116
117 # Targets to Make:
118 #    
119 #    all:       generate MH system, assumes configuration previously done
120 #
121 #    depend:    generate dependencies, for MH master maintainers only!
122 #
123 #    lint:      verify code, for MH master maintainers only!
124 #
125 #    compat-v7: verify V7 restrictions, for MH master maintainers only!
126 #
127 #    install:   install system
128 #
129 #    inst-all:  install system
130 #
131 #    inst-lib:  install shared libraries
132 #
133 #    mkdirs:    make MH target directories
134 #
135 #    tar:       generate tar commands to move targets to other systems
136 #                   e.g., make TFLAGS="cf mh.tar" tar
137 #    
138 #    uninstall: undo installation
139 #    
140 #    distribution:
141 #               revert source tree to MH distribution
142 #    unconfig:
143 #               removes configured files - for MH master maintainers only!
144 #    
145 #    checkout:  MH maintainers only!
146 #
147 #    clean:     remove all objects and targets plus clean up
148 #    
149 #    unclean:   remove scratch files and backups
150
151
152 ##############################################################################
153 #       Generate MH system
154 ##############################################################################
155
156 ALL     =       config sbr mts zotnet uip support doc
157
158 all:;           for d in $(ALL); do (cd $$d; $(MAKE) all); done
159
160 depend:;        for d in $(ALL); do (cd $$d; $(MAKE) depend); done
161
162 lint:;          for d in $(ALL); do (cd $$d; $(MAKE) lint); done
163
164 compat-v7:      all
165                 miscellany/tools/7limit */x* */*/x*
166                 miscellany/tools/8limit */*.o */*/*.o
167
168
169 INSTALL =       zotnet support uip doc
170 BINDIR  =       $(DESTDIR)@@(MHBINPATH)
171 ETCDIR  =       $(DESTDIR)@@(MHETCPATH)
172 MANDIR  =       $(DESTDIR)@@(MHMANDIR)
173 SLIB    =       sbr
174
175 install:        inst-all
176
177 inst-all:       mkdirs inst-lib
178                 for d in $(INSTALL); do (cd $$d; $(MAKE) inst-all); done
179
180 inst-lib:;      for d in $(SLIB); do (cd $$d; $(MAKE) inst-lib); done
181
182 mkdirs:         $(BINDIR) $(ETCDIR) $(MANDIR)
183
184 $(BINDIR) $(ETCDIR) $(MANDIR):
185                 mkdir $@@ && chmod 0755 $@@
186
187 tar:;           @@for d in $(INSTALL); \
188                     do (cd $$d; $(MAKE) TFLAGS="$(TFLAGS)" tar); done
189
190 uninstall:;     for d in $(INSTALL); do (cd $$d; $(MAKE) uninstall); done
191
192
193 ##############################################################################
194 #       Miscellaneous tasks
195 ##############################################################################
196
197 DISTRIBUTION=   dist conf config sbr mts zotnet support uip doc papers
198
199 distribution:   READ-ME CHANGES
200                 rm -f _* :*
201                 @@if test -f tma/mh/files; \
202                  then \
203                     echo rm -f `cat tma/mh/files`; rm -f `cat tma/mh/files`; \
204                     echo rm -rf tma; rm -rf tma; \
205                  fi
206                 -rm -f support/pop/mmdfII/pop/lock.c
207                 -rm -f support/bboards/mmdfII/bboards/lock.c
208                 -rm -f zotnet/tws/tws.h
209                 -rm -f uip/pshsbr.c
210                 cd support/pop/mmdfII/pop ; @@(LN) ../../../../zotnet/mts/lock.c .
211                 cd support/bboards/mmdfII/bboards ; @@(LN) ../../../../zotnet/mts/lock.c .
212                 cd zotnet/tws ; @@(LN) ../tws.h .
213                 cd uip ; @@(LN) popsbr.c pshsbr.c
214                 for d in $(DISTRIBUTION); \
215                     do (cd $$d; $(MAKE) distribution); done
216
217 READ-ME:        conf/mh-gen.8
218                 nroff -man conf/mh-gen.8 > read-me.tmp
219                 mv read-me.tmp $@@
220
221 CHANGES:        papers/changes/mh-changes.ms
222                 nroff -ms papers/changes/mh-changes.ms > changes.tmp
223                 mv changes.tmp $@@
224
225 unconfig:;      rm -f _* :* core READ-ME
226                 -rm -f support/pop/mmdfII/pop/lock.c
227                 -rm -f support/bboards/mmdfII/bboards/lock.c
228                 -rm -f zotnet/tws/tws.h
229                 -rm -f uip/pshsbr.c
230                 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) unconfig); done
231                 cp conf/makefiles/MH-Unconfig tmp
232                 mv tmp Makefile
233
234 checkout:       unclean lint compat-v7
235                 find . \( -name ":*" -o -name "_*" -o -name "#*" \) -a -print
236
237 clean:;         rm -f _* :* core
238                 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) clean); done
239
240 unclean:;       rm -f _* :* core
241                 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) unclean); done
242 @
243
244
245 2.15
246 log
247 @remove -Tcrt from nroff line
248 @
249 text
250 @d5 1
251 a5 1
252 # @@(#)$Id: MH-Makefile,v 2.14 1992/12/02 22:19:13 jromine Exp jromine $
253 d66 1
254 d76 1
255 a76 1
256 mkdirs:         $(BINDIR) $(ETCDIR)
257 d78 2
258 a79 3
259 $(BINDIR) $(ETCDIR):
260                 mkdir $@@
261                 chmod 0755 $@@
262 @
263
264
265 2.14
266 log
267 @add mh changes document
268 @
269 text
270 @d5 1
271 a5 1
272 # @@(#)$Id: MH-Makefile,v 2.13 1992/11/18 16:51:59 jromine Exp jromine $
273 d116 1
274 a116 1
275                 nroff -ms -Tcrt papers/changes/mh-changes.ms > changes.tmp
276 @
277
278
279 2.13
280 log
281 @fixup the way @@(LN) works
282 @
283 text
284 @d5 1
285 a5 1
286 # @@(#)$Id: MH-Makefile,v 2.12 1992/11/06 18:53:55 jromine Exp jromine $
287 d93 1
288 a93 1
289 distribution:   READ-ME
290 d114 4
291 @
292
293
294 2.12
295 log
296 @use @@(LN)
297 @
298 text
299 @d5 1
300 a5 1
301 # @@(#)$Id: MH-Makefile,v 2.11 1992/11/02 22:56:13 jromine Exp jromine $
302 d104 4
303 a107 4
304                 @@(LN) zotnet/mts/lock.c support/pop/mmdfII/pop/lock.c
305                 @@(LN) zotnet/mts/lock.c support/bboards/mmdfII/bboards/lock.c
306                 @@(LN) zotnet/tws.h zotnet/tws/tws.h
307                 @@(LN) uip/popsbr.c uip/pshsbr.c
308 @
309
310
311 2.11
312 log
313 @make pshsbr.c from popsbr.c
314 @
315 text
316 @d5 1
317 a5 1
318 # @@(#)$Id: MH-Makefile,v 2.10 1992/10/29 17:41:35 jromine Exp jromine $
319 d104 4
320 a107 4
321                 ln zotnet/mts/lock.c support/pop/mmdfII/pop/lock.c
322                 ln zotnet/mts/lock.c support/bboards/mmdfII/bboards/lock.c
323                 ln zotnet/tws.h zotnet/tws/tws.h
324                 ln uip/popsbr.c uip/pshsbr.c
325 @
326
327
328 2.10
329 log
330 @fixup make unconfig
331 @
332 text
333 @d5 1
334 a5 1
335 # @@(#)$Id: MH-Makefile,v 2.9 1992/10/29 16:25:20 jromine Exp jromine $
336 d103 1
337 d107 1
338 d119 1
339 @
340
341
342 2.9
343 log
344 @fixup make distribution & tws.h
345 @
346 text
347 @d5 1
348 a5 1
349 # @@(#)$Id: MH-Makefile,v 2.8 1992/10/16 16:51:06 jromine Exp jromine $
350 d93 2
351 a94 1
352 distribution:;  rm -f _* :*
353 d109 5
354 a113 1
355 unconfig:;      rm -f _* :* core
356 d118 1
357 a118 2
358                 echo > tmp \
359     'all clean:; @@echo "You must configure MH first -- see READ-ME for details"'
360 @
361
362
363 2.8
364 log
365 @make install not force clean
366 @
367 text
368 @d5 1
369 a5 1
370 # @@(#)$Id: MH-Makefile,v 2.7 1992/03/03 17:25:21 jromine Exp jromine $
371 d101 1
372 d104 1
373 d109 3
374 @
375
376
377 2.7
378 log
379 @add 'clean' target to empty makefile
380 @
381 text
382 @d5 1
383 a5 1
384 # @@(#)$Id: MH-Makefile,v 2.6 1992/02/06 17:25:23 jromine Exp jromine $
385 d21 1
386 a21 1
387 #    install:   install system and clean up afterwards
388 d68 1
389 a68 1
390 install:        inst-all clean
391 @
392
393
394 2.6
395 log
396 @fixes
397 @
398 text
399 @d5 1
400 a5 1
401 # @@(#)$Id: MH-Makefile,v 2.5 1990/04/08 14:09:51 sources Exp jromine $
402 d109 1
403 a109 1
404         'all:; @@echo "You must configure MH first -- see READ-ME for details"'
405 @
406
407
408 2.5
409 log
410 @*** empty log message ***
411 @
412 text
413 @d5 1
414 a5 1
415 # @@(#)$Id: MH-Makefile,v 2.4 90/04/05 15:39:13 sources Exp Locker: sources $
416 d23 2
417 d27 1
418 a27 1
419 #    inst-all:  install system
420 d64 2
421 d70 1
422 a70 1
423 inst-all:       inst-lib
424 d75 6
425 d99 4
426 @
427
428
429 2.4
430 log
431 @add warning
432 @
433 text
434 @d5 1
435 a5 1
436 # @@(#)$Id: MH-Makefile,v 2.3 90/04/05 15:17:14 sources Exp Locker: sources $
437 d81 1
438 a81 1
439 DISTRIBUTION=   conf config sbr mts zotnet support uip doc papers dist
440 @
441
442
443 2.3
444 log
445 @add ID
446 @
447 text
448 @d3 3
449 a6 1
450 # @@(#)$Id:$
451 @
452
453
454 2.2
455 log
456 @make unconfig changes
457 @
458 text
459 @d4 1
460 @
461
462
463 2.1
464 log
465 @checkpoint
466 @
467 text
468 @d91 3
469 @
470
471
472 2.0
473 log
474 @changes for SUN40 shared libraries and NNTP under bbc
475 @
476 text
477 @d32 1
478 a32 1
479 #               does "make dist" -- removes all configured files
480 @
481
482
483 1.1
484 log
485 @Initial revision
486 @
487 text
488 @d20 2
489 d31 2
490 d59 1
491 d63 2
492 a64 1
493 inst-all:;      for d in $(INSTALL); do (cd $$d; $(MAKE) inst-all); done
494 d66 2
495 d88 3
496 @