]>
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:: |
30 | make ${MFLAGS} clean-imake | |
c9cff6fe | 31 | make ${MFLAGS} imake |
38cf9640 | 32 | make ${MFLAGS} Makefile |
33 | make ${MFLAGS} Makefiles | |
34 | make ${MFLAGS} depend | |
35 | make ${MFLAGS} all | |
36 | ||
455b7baa | 37 | #else /* USELOCALTOOLS */ |
38 | ||
39 | world:: | |
3ca43169 | 40 | make ${MFLAGS} clean-imake |
455b7baa | 41 | make ${MFLAGS} Makefile |
42 | make ${MFLAGS} Makefiles | |
43 | make ${MFLAGS} depend | |
44 | make ${MFLAGS} all | |
45 | #endif /* USELOCALTOOLS */ | |
46 | ||
30b805f1 | 47 | clean-imake: |
48 | cd util/imake; make clean | |
30b805f1 | 49 | |
50 | imake:: | |
51 | cd util/imake; make | |
455b7baa | 52 | |
38cf9640 | 53 | install:: |
54 | -mkdir ${DESTDIR} | |
55 | -mkdir ${DESTDIR}${USRDIR} | |
56 | -mkdir ${DESTDIR}${ETCDIR} | |
57 | -mkdir ${DESTDIR}${PROGDIR} | |
58 | -mkdir ${DESTDIR}${LIBDIR} | |
59 | -mkdir ${DESTDIR}${LINTLIBDIR} | |
60 | -mkdir ${DESTDIR}${INCLDIR} | |
61 | -mkdir ${DESTDIR}${MANDIR} | |
62 | -mkdir ${DESTDIR}${MANDIR}/man1 | |
63 | -mkdir ${DESTDIR}${MANDIR}/man3 | |
64 | -mkdir ${DESTDIR}${MANDIR}/man5 | |
65 | -mkdir ${DESTDIR}${MANDIR}/man8 | |
66 | -mkdir ./bin | |
67 | ||
3ca43169 | 68 | #ifndef USELOCALTOOLS |
30b805f1 | 69 | depend:: makedepend |
455b7baa | 70 | #endif |
71 | ||
3ca43169 | 72 | #ifndef USELOCALLIBS |
30b805f1 | 73 | depend:: et ss |
455b7baa | 74 | #endif |
30b805f1 | 75 | |
76 | et: | |
4b7a2136 | 77 | cd util/et; make ${MFLAGS} DEPEND="$(BUILDTOP)/../../$(DEPEND)" depend; make ${MFLAGS} all |
30b805f1 | 78 | |
79 | ss: | |
4b7a2136 | 80 | cd util/ss; make ${MFLAGS} DEPEND="$(BUILDTOP)/../../$(DEPEND)" depend; make ${MFLAGS} all |
30b805f1 | 81 | |
82 | makedepend: | |
83 | cd util/makedepend; make |