📄 mh-makefile
字号:
############################################################################### Instructions to Make, for compilation of MH modules## @(MHWARNING)# @(#)$Id: MH-Makefile,v 2.16 1993/08/27 22:15:49 jromine Exp $##############################################################################MAKE = make DESTDIR=$(DESTDIR) $(MFLAGS) -kSHELL = /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 docall:; for d in $(ALL); do (cd $$d; $(MAKE) all); donedepend:; for d in $(ALL); do (cd $$d; $(MAKE) depend); donelint:; for d in $(ALL); do (cd $$d; $(MAKE) lint); donecompat-v7: all miscellany/tools/7limit */x* */*/x* miscellany/tools/8limit */*.o */*/*.oINSTALL = zotnet support uip docBINDIR = $(DESTDIR)@(MHBINPATH)ETCDIR = $(DESTDIR)@(MHETCPATH)MANDIR = $(DESTDIR)@(MHMANDIR)SLIB = sbrinstall: inst-allinst-all: mkdirs inst-lib for d in $(INSTALL); do (cd $$d; $(MAKE) inst-all); doneinst-lib:; for d in $(SLIB); do (cd $$d; $(MAKE) inst-lib); donemkdirs: $(BINDIR) $(ETCDIR) $(MANDIR)$(BINDIR) $(ETCDIR) $(MANDIR): mkdir $@ && chmod 0755 $@tar:; @for d in $(INSTALL); \ do (cd $$d; $(MAKE) TFLAGS="$(TFLAGS)" tar); doneuninstall:; for d in $(INSTALL); do (cd $$d; $(MAKE) uninstall); done############################################################################### Miscellaneous tasks##############################################################################DISTRIBUTION= dist conf config sbr mts zotnet support uip doc papersdistribution: 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); doneREAD-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 Makefilecheckout: unclean lint compat-v7 find . \( -name ":*" -o -name "_*" -o -name "#*" \) -a -printclean:; rm -f _* :* core for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) clean); doneunclean:; rm -f _* :* core for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) unclean); done
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -