head     1.2;
branch   ;
access   ;
symbols  ;
locks    ; strict;
comment  @# @;


1.2
date     94.08.22.13.18.45;  author cfields;  state Exp;
branches ;
next     1.1;

1.1
date     94.01.18.13.24.28;  author miki;  state Exp;
branches ;
next     ;


desc
@@


1.2
log
@changed inst-all to install
7.7 checkin; changes by miki
@
text
@##############################################################################
#	Instructions to Make, for compilation of MH modules
#
#	@@(MHWARNING)
# @@(#)MH-Makefile,v 1.1.1.1 1993/01/30 04:40:15 jtc Exp
##############################################################################

MAKE	=	make DESTDIR=$(DESTDIR) $(MFLAGS) -k
SHELL	=	/bin/sh

# Targets to Make:
#    
#    all:	generate MH system, assumes configuration previously done
#
#    depend:	generate dependencies, for MH master maintainers only!
#
#    lint:	verify code, for MH master maintainers only!
#
#    compat-v7:	verify V7 restrictions, for MH master maintainers only!
#
#    install:	install system
#
#    inst-all:	install system
#
#    inst-lib:  install shared libraries
#
#    mkdirs:	make MH target directories
#
#    tar:	generate tar commands to move targets to other systems
#		    e.g., make TFLAGS="cf mh.tar" tar
#    
#    uninstall:	undo installation
#    
#    distribution:
#		revert source tree to MH distribution
#    unconfig:
#		removes configured files - for MH master maintainers only!
#    
#    checkout:	MH maintainers only!
#
#    clean:	remove all objects and targets plus clean up
#    
#    unclean:	remove scratch files and backups


##############################################################################
#	Generate MH system
##############################################################################

ALL	=	config sbr mts zotnet uip support doc

all:;		for d in $(ALL); do (cd $$d; $(MAKE) all); done

depend:;	for d in $(ALL); do (cd $$d; $(MAKE) depend); done

lint:;		for d in $(ALL); do (cd $$d; $(MAKE) lint); done

compat-v7:	all
		miscellany/tools/7limit */x* */*/x*
		miscellany/tools/8limit */*.o */*/*.o


INSTALL	=	zotnet support uip doc
BINDIR	=	$(DESTDIR)@@(MHBINPATH)
ETCDIR	=	$(DESTDIR)@@(MHETCPATH)
SLIB	=	sbr

install:	mkdirs inst-lib
		for d in $(INSTALL); do (cd $$d; $(MAKE) install); done

inst-lib:;	for d in $(SLIB); do (cd $$d; $(MAKE) inst-lib); done

mkdirs:		$(BINDIR) $(ETCDIR)

$(BINDIR) $(ETCDIR):
		mkdir $@@
		chmod 0755 $@@

tar:;		@@for d in $(INSTALL); \
		    do (cd $$d; $(MAKE) TFLAGS="$(TFLAGS)" tar); done

uninstall:;	for d in $(INSTALL); do (cd $$d; $(MAKE) uninstall); done


##############################################################################
#	Miscellaneous tasks
##############################################################################

DISTRIBUTION=	dist conf config sbr mts zotnet support uip doc papers

distribution:	READ-ME CHANGES
		rm -f _* :*
		@@if test -f tma/mh/files; \
		 then \
		    echo rm -f `cat tma/mh/files`; rm -f `cat tma/mh/files`; \
		    echo rm -rf tma; rm -rf tma; \
		 fi
		-rm -f support/pop/mmdfII/pop/lock.c
		-rm -f support/bboards/mmdfII/bboards/lock.c
		-rm -f zotnet/tws/tws.h
		-rm -f uip/pshsbr.c
		cd support/pop/mmdfII/pop ; @@(LN) ../../../../zotnet/mts/lock.c .
		cd support/bboards/mmdfII/bboards ; @@(LN) ../../../../zotnet/mts/lock.c .
		cd zotnet/tws ; @@(LN) ../tws.h .
		cd uip ; @@(LN) popsbr.c pshsbr.c
		for d in $(DISTRIBUTION); \
		    do (cd $$d; $(MAKE) distribution); done

READ-ME:	conf/mh-gen.8
		nroff -man conf/mh-gen.8 > read-me.tmp
		mv read-me.tmp $@@

CHANGES:	papers/changes/mh-changes.ms
		nroff -ms papers/changes/mh-changes.ms > changes.tmp
		mv changes.tmp $@@

unconfig:;	rm -f _* :* core READ-ME
		-rm -f support/pop/mmdfII/pop/lock.c
		-rm -f support/bboards/mmdfII/bboards/lock.c
		-rm -f zotnet/tws/tws.h
		-rm -f uip/pshsbr.c
		for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) unconfig); done
		cp conf/makefiles/MH-Unconfig tmp
		mv tmp Makefile

checkout:	unclean lint compat-v7
		find . \( -name ":*" -o -name "_*" -o -name "#*" \) -a -print

clean:;		rm -f _* :* core
		for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) clean); done

unclean:;	rm -f _* :* core
		for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) unclean); done
@


1.1
log
@Initial revision
@
text
@d68 2
a69 4
install:	inst-all

inst-all:	mkdirs inst-lib
		for d in $(INSTALL); do (cd $$d; $(MAKE) inst-all); done
@
