1 ##############################################################################
2 # Instructions to Make, for compilation of MH modules
4 # This file is automatically generated. Do not edit!
5 # @(#)$Id: MH-Makefile,v 2.16 1993/08/27 22:15:49 jromine Exp $
6 ##############################################################################
8 MAKE = make DESTDIR=$(DESTDIR) $(MFLAGS) -k
13 # all: generate MH system, assumes configuration previously done
15 # depend: generate dependencies, for MH master maintainers only!
17 # lint: verify code, for MH master maintainers only!
19 # compat-v7: verify V7 restrictions, for MH master maintainers only!
21 # install: install system
23 # inst-all: install system
25 # inst-lib: install shared libraries
27 # mkdirs: make MH target directories
29 # tar: generate tar commands to move targets to other systems
30 # e.g., make TFLAGS="cf mh.tar" tar
32 # uninstall: undo installation
35 # revert source tree to MH distribution
37 # removes configured files - for MH master maintainers only!
39 # checkout: MH maintainers only!
41 # clean: remove all objects and targets plus clean up
43 # unclean: remove scratch files and backups
46 ##############################################################################
48 ##############################################################################
50 ALL = config sbr mts zotnet uip support doc
52 all:; for d in $(ALL); do (cd $$d; $(MAKE) all); done
54 depend:; for d in $(ALL); do (cd $$d; $(MAKE) depend); done
56 lint:; for d in $(ALL); do (cd $$d; $(MAKE) lint); done
59 miscellany/tools/7limit */x* */*/x*
60 miscellany/tools/8limit */*.o */*/*.o
63 INSTALL = zotnet support uip doc
64 BINDIR = $(DESTDIR)/opt/mh-6.8.5/bin
65 ETCDIR = $(DESTDIR)/opt/mh-6.8.5/lib
66 MANDIR = $(DESTDIR)/opt/mh-6.8.5/man
71 inst-all: mkdirs inst-lib
72 for d in $(INSTALL); do (cd $$d; $(MAKE) inst-all); done
74 inst-lib:; for d in $(SLIB); do (cd $$d; $(MAKE) inst-lib); done
76 mkdirs: $(BINDIR) $(ETCDIR) $(MANDIR)
78 $(BINDIR) $(ETCDIR) $(MANDIR):
79 mkdir $@ && chmod 0755 $@
81 tar:; @for d in $(INSTALL); \
82 do (cd $$d; $(MAKE) TFLAGS="$(TFLAGS)" tar); done
84 uninstall:; for d in $(INSTALL); do (cd $$d; $(MAKE) uninstall); done
87 ##############################################################################
89 ##############################################################################
91 DISTRIBUTION= dist conf config sbr mts zotnet support uip doc papers
93 distribution: READ-ME CHANGES
95 @if test -f tma/mh/files; \
97 echo rm -f `cat tma/mh/files`; rm -f `cat tma/mh/files`; \
98 echo rm -rf tma; rm -rf tma; \
100 -rm -f support/pop/mmdfII/pop/lock.c
101 -rm -f support/bboards/mmdfII/bboards/lock.c
102 -rm -f zotnet/tws/tws.h
104 cd support/pop/mmdfII/pop ; ln ../../../../zotnet/mts/lock.c .
105 cd support/bboards/mmdfII/bboards ; ln ../../../../zotnet/mts/lock.c .
106 cd zotnet/tws ; ln ../tws.h .
107 cd uip ; ln popsbr.c pshsbr.c
108 for d in $(DISTRIBUTION); \
109 do (cd $$d; $(MAKE) distribution); done
111 READ-ME: conf/mh-gen.8
112 nroff -man conf/mh-gen.8 > read-me.tmp
115 CHANGES: papers/changes/mh-changes.ms
116 nroff -ms papers/changes/mh-changes.ms > changes.tmp
119 unconfig:; rm -f _* :* core READ-ME
120 -rm -f support/pop/mmdfII/pop/lock.c
121 -rm -f support/bboards/mmdfII/bboards/lock.c
122 -rm -f zotnet/tws/tws.h
124 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) unconfig); done
125 cp conf/makefiles/MH-Unconfig tmp
128 checkout: unclean lint compat-v7
129 find . \( -name ":*" -o -name "_*" -o -name "#*" \) -a -print
131 clean:; rm -f _* :* core
132 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) clean); done
134 unclean:; rm -f _* :* core
135 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) unclean); done