8 date 93.08.27.22.15.49; author jromine; state Exp;
13 date 92.12.03.16.23.40; author jromine; state Exp;
18 date 92.12.02.22.19.13; author jromine; state Exp;
23 date 92.11.18.16.51.59; author jromine; state Exp;
28 date 92.11.06.18.53.55; author jromine; state Exp;
33 date 92.11.02.22.56.13; author jromine; state Exp;
38 date 92.10.29.17.41.35; author jromine; state Exp;
43 date 92.10.29.16.25.20; author jromine; state Exp;
48 date 92.10.16.16.51.06; author jromine; state Exp;
53 date 92.03.03.17.25.21; author jromine; state Exp;
58 date 92.02.06.17.25.23; author jromine; state Exp;
63 date 90.04.08.14.09.51; author sources; state Exp;
68 date 90.04.05.15.39.13; author sources; state Exp;
73 date 90.04.05.15.17.14; author sources; state Exp;
78 date 90.02.21.17.29.01; author sources; state Exp;
83 date 90.02.21.17.05.09; author sources; state Exp;
88 date 89.11.17.15.56.24; author sources; state Exp;
93 date 89.11.17.15.43.15; author sources; state Exp;
107 @##############################################################################
108 # Instructions to Make, for compilation of MH modules
111 # @@(#)$Id: MH-Makefile,v 2.15 1992/12/03 16:23:40 jromine Exp jromine $
112 ##############################################################################
114 MAKE = make DESTDIR=$(DESTDIR) $(MFLAGS) -k
119 # all: generate MH system, assumes configuration previously done
121 # depend: generate dependencies, for MH master maintainers only!
123 # lint: verify code, for MH master maintainers only!
125 # compat-v7: verify V7 restrictions, for MH master maintainers only!
127 # install: install system
129 # inst-all: install system
131 # inst-lib: install shared libraries
133 # mkdirs: make MH target directories
135 # tar: generate tar commands to move targets to other systems
136 # e.g., make TFLAGS="cf mh.tar" tar
138 # uninstall: undo installation
141 # revert source tree to MH distribution
143 # removes configured files - for MH master maintainers only!
145 # checkout: MH maintainers only!
147 # clean: remove all objects and targets plus clean up
149 # unclean: remove scratch files and backups
152 ##############################################################################
154 ##############################################################################
156 ALL = config sbr mts zotnet uip support doc
158 all:; for d in $(ALL); do (cd $$d; $(MAKE) all); done
160 depend:; for d in $(ALL); do (cd $$d; $(MAKE) depend); done
162 lint:; for d in $(ALL); do (cd $$d; $(MAKE) lint); done
165 miscellany/tools/7limit */x* */*/x*
166 miscellany/tools/8limit */*.o */*/*.o
169 INSTALL = zotnet support uip doc
170 BINDIR = $(DESTDIR)@@(MHBINPATH)
171 ETCDIR = $(DESTDIR)@@(MHETCPATH)
172 MANDIR = $(DESTDIR)@@(MHMANDIR)
177 inst-all: mkdirs inst-lib
178 for d in $(INSTALL); do (cd $$d; $(MAKE) inst-all); done
180 inst-lib:; for d in $(SLIB); do (cd $$d; $(MAKE) inst-lib); done
182 mkdirs: $(BINDIR) $(ETCDIR) $(MANDIR)
184 $(BINDIR) $(ETCDIR) $(MANDIR):
185 mkdir $@@ && chmod 0755 $@@
187 tar:; @@for d in $(INSTALL); \
188 do (cd $$d; $(MAKE) TFLAGS="$(TFLAGS)" tar); done
190 uninstall:; for d in $(INSTALL); do (cd $$d; $(MAKE) uninstall); done
193 ##############################################################################
194 # Miscellaneous tasks
195 ##############################################################################
197 DISTRIBUTION= dist conf config sbr mts zotnet support uip doc papers
199 distribution: READ-ME CHANGES
201 @@if test -f tma/mh/files; \
203 echo rm -f `cat tma/mh/files`; rm -f `cat tma/mh/files`; \
204 echo rm -rf tma; rm -rf tma; \
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
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
217 READ-ME: conf/mh-gen.8
218 nroff -man conf/mh-gen.8 > read-me.tmp
221 CHANGES: papers/changes/mh-changes.ms
222 nroff -ms papers/changes/mh-changes.ms > changes.tmp
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
230 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) unconfig); done
231 cp conf/makefiles/MH-Unconfig tmp
234 checkout: unclean lint compat-v7
235 find . \( -name ":*" -o -name "_*" -o -name "#*" \) -a -print
237 clean:; rm -f _* :* core
238 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) clean); done
240 unclean:; rm -f _* :* core
241 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) unclean); done
247 @remove -Tcrt from nroff line
252 # @@(#)$Id: MH-Makefile,v 2.14 1992/12/02 22:19:13 jromine Exp jromine $
256 mkdirs: $(BINDIR) $(ETCDIR)
267 @add mh changes document
272 # @@(#)$Id: MH-Makefile,v 2.13 1992/11/18 16:51:59 jromine Exp jromine $
275 nroff -ms -Tcrt papers/changes/mh-changes.ms > changes.tmp
281 @fixup the way @@(LN) works
286 # @@(#)$Id: MH-Makefile,v 2.12 1992/11/06 18:53:55 jromine Exp jromine $
289 distribution: READ-ME
301 # @@(#)$Id: MH-Makefile,v 2.11 1992/11/02 22:56:13 jromine Exp jromine $
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
313 @make pshsbr.c from popsbr.c
318 # @@(#)$Id: MH-Makefile,v 2.10 1992/10/29 17:41:35 jromine Exp jromine $
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
335 # @@(#)$Id: MH-Makefile,v 2.9 1992/10/29 16:25:20 jromine Exp jromine $
344 @fixup make distribution & tws.h
349 # @@(#)$Id: MH-Makefile,v 2.8 1992/10/16 16:51:06 jromine Exp jromine $
352 distribution:; rm -f _* :*
355 unconfig:; rm -f _* :* core
359 'all clean:; @@echo "You must configure MH first -- see READ-ME for details"'
365 @make install not force clean
370 # @@(#)$Id: MH-Makefile,v 2.7 1992/03/03 17:25:21 jromine Exp jromine $
379 @add 'clean' target to empty makefile
384 # @@(#)$Id: MH-Makefile,v 2.6 1992/02/06 17:25:23 jromine Exp jromine $
387 # install: install system and clean up afterwards
390 install: inst-all clean
401 # @@(#)$Id: MH-Makefile,v 2.5 1990/04/08 14:09:51 sources Exp jromine $
404 'all:; @@echo "You must configure MH first -- see READ-ME for details"'
410 @*** empty log message ***
415 # @@(#)$Id: MH-Makefile,v 2.4 90/04/05 15:39:13 sources Exp Locker: sources $
419 # inst-all: install system
436 # @@(#)$Id: MH-Makefile,v 2.3 90/04/05 15:17:14 sources Exp Locker: sources $
439 DISTRIBUTION= conf config sbr mts zotnet support uip doc papers dist
456 @make unconfig changes
474 @changes for SUN40 shared libraries and NNTP under bbc
479 # does "make dist" -- removes all configured files
493 inst-all:; for d in $(INSTALL); do (cd $$d; $(MAKE) inst-all); done