Commit | Line | Data |
---|---|---|
1641c513 | 1 | # @(#)Makefile 4.20 (Berkeley) %G% |
4653d32f | 2 | |
1641c513 KB |
3 | # skip old |
4 | SUBDIR= bin games include lib libexec old pgrm sbin share usr.bin usr.sbin | |
9c1744c1 | 5 | |
1641c513 KB |
6 | build: |
7 | ${MAKE} cleandir | |
a54c9390 | 8 | |
e8c48044 | 9 | @echo +++ installing includes |
1641c513 KB |
10 | cd include; ${MAKE} depend all install clean |
11 | ||
e8c48044 | 12 | @echo +++ installing C compiler |
1641c513 KB |
13 | cd pgrm/cpp; ${MAKE} depend all install clean |
14 | cd libexec/c2.${MACHINE}; ${MAKE} depend all install clean | |
15 | cd libexec/pcc; ${MAKE} depend all install clean | |
63d11f9b | 16 | |
1641c513 KB |
17 | @echo +++ installing C library |
18 | cd lib/libc; ${MAKE} depend all install clean | |
9c1744c1 | 19 | |
1641c513 KB |
20 | @echo +++ re-installing C compiler |
21 | cd pgrm/cpp; ${MAKE} all install all | |
22 | cd libexec/c2.${MACHINE}; ${MAKE} all install all | |
23 | cd libexec/pcc; ${MAKE} all install all | |
e8c48044 | 24 | |
1641c513 KB |
25 | @echo +++ installing all libraries |
26 | cd lib; ${MAKE} depend all install all | |
27 | cd lib/libc; rm -f tags; ${MAKE} tags; \ | |
28 | install -c -o ${BINOWN} -g ${BINGRP} -m 444 tags /usr/libdata/tags | |
f9091df4 | 29 | |
1641c513 | 30 | @echo +++ installing C library tags file |
6588680f | 31 | |
1641c513 KB |
32 | @echo +++ libraries done |
33 | ${MAKE} | |
34 | ||
35 | OBJ= /usr/obj | |
36 | objlinks: | |
37 | -for file in `find ${SUBDIR:S/^/-f /g} name SCCS prune or type dir print`; do \ | |
38 | if [ -s $$file/Makefile -a ! -d ${OBJ}/$$file ] ; then \ | |
39 | rm -rf ${OBJ}/$$file; \ | |
40 | mkdir -p ${OBJ}/$$file > /dev/null 2>&1 ; \ | |
41 | rm -f $$file/obj; \ | |
42 | ln -s ${OBJ}/$$file $$file/obj; \ | |
43 | fi; \ | |
74d5a2b2 | 44 | done |
74d5a2b2 | 45 | |
1641c513 KB |
46 | shadow: |
47 | -for file in `find ${SUBDIR:S/^/-f /g} name SCCS prune or type dir print`; do \ | |
48 | if [ -s $$file/obj ] ; then \ | |
49 | rm -rf ${OBJ}/$$file; \ | |
50 | mkdir -p ${OBJ}/$$file > /dev/null 2>&1 ; \ | |
51 | fi; \ | |
6588680f KB |
52 | done |
53 | ||
1641c513 KB |
54 | .include <bsd.own.mk> |
55 | .include <bsd.subdir.mk> |