|
|
1.1 root 1: # @(#)bsd.subdir.mk 5.8 (Berkeley) 6/22/90
2:
3: .MAIN: all
4:
5: STRIP?= -s
6:
7: BINGRP?= bin
8: BINOWN?= bin
9: BINMODE?= 555
10:
11: _SUBDIRUSE: .USE
12: @for entry in ${SUBDIR}; do \
13: (if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \
14: echo "===> $${entry}.${MACHINE}"; \
15: cd ${.CURDIR}/$${entry}.${MACHINE}; \
16: else \
17: echo "===> $$entry"; \
18: cd ${.CURDIR}/$${entry}; \
19: fi; \
20: ${MAKE} ${.TARGET:realinstall=install}) \
21: done
22:
23: ${SUBDIR}::
24: @if test -d ${.TARGET}.${MACHINE}; then \
25: cd ${.CURDIR}/${.TARGET}.${MACHINE}; \
26: else \
27: cd ${.CURDIR}/${.TARGET}; \
28: fi; \
29: ${MAKE} all
30:
31: .if !target(all)
32: all: _SUBDIRUSE
33: .endif
34:
35: .if !target(clean)
36: clean: _SUBDIRUSE
37: .endif
38:
39: .if !target(cleandir)
40: cleandir: _SUBDIRUSE
41: .endif
42:
43: .if !target(depend)
44: depend: _SUBDIRUSE
45: .endif
46:
47: .if !target(install)
48: .if !target(beforeinstall)
49: beforeinstall:
50: .endif
51: .if !target(afterinstall)
52: afterinstall:
53: .endif
54: install: afterinstall
55: afterinstall: realinstall
56: realinstall: beforeinstall _SUBDIRUSE
57: .endif
58:
59: .if !target(lint)
60: lint: _SUBDIRUSE
61: .endif
62:
63: .if !target(obj)
64: obj: _SUBDIRUSE
65: .endif
66:
67: .if !target(tags)
68: tags: _SUBDIRUSE
69: .endif
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.