BSD 4_3 development
[unix-history] / usr / contrib / mh / Makefile
CommitLineData
d08d678b
C
1##############################################################################
2# Instructions to Make, for compilation of MH modules
3##############################################################################
4
5MAKE = make DESTDIR=$(DESTDIR) $(MFLAGS) -k
6SHELL = /bin/sh
7
8# Targets to Make:
9#
10# all: generate MH system, assumes configuration previously done
11#
12# depend: generate dependencies, for MH master maintainers only!
13#
14# lint: verify code, for MH master maintainers only!
15#
16# compat-v7: verify V7 restrictions, for MH master maintainers only!
17#
18# install: install system and clean up afterwards
19#
20# inst-all: install system
21#
22# tar: generate tar commands to move targets to other systems
23# e.g., make TFLAGS="cf mh.tar" tar
24#
25# uninstall: undo installation
26#
27# distribution:
28# revert source tree to MH distribution
29#
30# checkout: MH maintainers only!
31#
32# clean: remove all objects and targets plus clean up
33#
34# unclean: remove scratch files and backups
35
36
37##############################################################################
38# Generate MH system
39##############################################################################
40
41ALL = config sbr mts zotnet uip support doc
42
43all:; for d in $(ALL); do (cd $$d; $(MAKE) all); done
44
45depend:; for d in $(ALL); do (cd $$d; $(MAKE) depend); done
46
47lint:; for d in $(ALL); do (cd $$d; $(MAKE) lint); done
48
49compat-v7: all
50 miscellany/tools/7limit */x* */*/x*
51 miscellany/tools/8limit */*.o */*/*.o
52
53
54INSTALL = zotnet support uip doc
55
56install: inst-all
57
58inst-all:;
59 -mkdir /usr/new/mh /usr/new/lib/mh
60 for d in $(INSTALL); do (cd $$d; $(MAKE) inst-all); done
61
62tar:; @for d in $(INSTALL); \
63 do (cd $$d; $(MAKE) TFLAGS="$(TFLAGS)" tar); done
64
65uninstall:; for d in $(INSTALL); do (cd $$d; $(MAKE) uninstall); done
66
67
68##############################################################################
69# Miscellaneous tasks
70##############################################################################
71
72DISTRIBUTION= conf config sbr mts zotnet support uip doc papers dist
73
74distribution:; rm -f _* :*
75 for d in $(DISTRIBUTION); \
76 do (cd $$d; $(MAKE) distribution); done
77
78checkout: unclean lint compat-v7
79 find . \( -name ":*" -o -name "_*" -o -name "#*" \) -a -print
80
81clean:; rm -f _* :* core
82 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) clean); done
83
84unclean:; rm -f _* :* core
85 for d in $(DISTRIBUTION); do (cd $$d; $(MAKE) unclean); done