]>
Commit | Line | Data |
---|---|---|
38cf9640 | 1 | # $Header$ |
2 | # | |
3 | # Copyright 1990 by the Massachusetts Institute of Technology. | |
4 | # | |
5 | # For copying and distribution information, | |
6 | # please see the file <mit-copyright.h>. | |
7 | # | |
8 | # Imakefile for top level directory. | |
9 | # | |
10 | ||
11 | #define have_subdirs | |
12 | CODE=Imakefile | |
455b7baa | 13 | CLIENTDIRS=util include gdb lib clients man update |
14 | SVRDIRS=server db backup dbck dcm gen reg_svr incremental regtape | |
38cf9640 | 15 | #ifdef SVRBUILD |
16 | SUBDIRS=$(CLIENTDIRS) $(SVRDIRS) | |
17 | #else | |
18 | SUBDIRS=$(CLIENTDIRS) | |
19 | #endif | |
20 | ||
30b805f1 | 21 | #ifndef USELOCALTOOLS |
22 | all:: et ss | |
23 | #else | |
38cf9640 | 24 | all:: |
30b805f1 | 25 | #endif |
38cf9640 | 26 | |
455b7baa | 27 | #ifndef USELOCALTOOLS |
28 | ||
38cf9640 | 29 | world:: |
c9cff6fe | 30 | make ${MFLAGS} imake |
38cf9640 | 31 | make ${MFLAGS} Makefile |
32 | make ${MFLAGS} Makefiles | |
33 | make ${MFLAGS} depend | |
34 | make ${MFLAGS} all | |
35 | ||
455b7baa | 36 | #else /* USELOCALTOOLS */ |
37 | ||
38 | world:: | |
39 | make ${MFLAGS} Makefile | |
40 | make ${MFLAGS} Makefiles | |
41 | make ${MFLAGS} depend | |
42 | make ${MFLAGS} all | |
43 | #endif /* USELOCALTOOLS */ | |
44 | ||
30b805f1 | 45 | imake:: |
46 | cd util/imake; make | |
455b7baa | 47 | |
38cf9640 | 48 | install:: |
49 | -mkdir ${DESTDIR} | |
50 | -mkdir ${DESTDIR}${USRDIR} | |
51 | -mkdir ${DESTDIR}${ETCDIR} | |
52 | -mkdir ${DESTDIR}${PROGDIR} | |
53 | -mkdir ${DESTDIR}${LIBDIR} | |
54 | -mkdir ${DESTDIR}${LINTLIBDIR} | |
55 | -mkdir ${DESTDIR}${INCLDIR} | |
56 | -mkdir ${DESTDIR}${MANDIR} | |
57 | -mkdir ${DESTDIR}${MANDIR}/man1 | |
58 | -mkdir ${DESTDIR}${MANDIR}/man3 | |
59 | -mkdir ${DESTDIR}${MANDIR}/man5 | |
60 | -mkdir ${DESTDIR}${MANDIR}/man8 | |
61 | -mkdir ./bin | |
62 | ||
3ca43169 | 63 | #ifndef USELOCALTOOLS |
30b805f1 | 64 | depend:: makedepend |
455b7baa | 65 | #endif |
66 | ||
3ca43169 | 67 | #ifndef USELOCALLIBS |
30b805f1 | 68 | depend:: et ss |
455b7baa | 69 | #endif |
30b805f1 | 70 | |
71 | et: | |
4b7a2136 | 72 | cd util/et; make ${MFLAGS} DEPEND="$(BUILDTOP)/../../$(DEPEND)" depend; make ${MFLAGS} all |
30b805f1 | 73 | |
74 | ss: | |
4b7a2136 | 75 | cd util/ss; make ${MFLAGS} DEPEND="$(BUILDTOP)/../../$(DEPEND)" depend; make ${MFLAGS} all |
30b805f1 | 76 | |
77 | makedepend: | |
78 | cd util/makedepend; make |