Deleted Added
full compact
bsd.subdir.mk (1639) bsd.subdir.mk (1844)
1# @(#)bsd.subdir.mk 8.1 (Berkeley) 6/8/93
1# from: @(#)bsd.subdir.mk 5.9 (Berkeley) 2/1/91
2# $Id: bsd.subdir.mk,v 1.5 1994/01/31 06:10:40 rgrimes Exp $
2
3.MAIN: all
4
5STRIP?= -s
6
7BINGRP?= bin
8BINOWN?= bin
9BINMODE?= 555
10
11_SUBDIRUSE: .USE
12 @for entry in ${SUBDIR}; do \
13 (if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \
3
4.MAIN: all
5
6STRIP?= -s
7
8BINGRP?= bin
9BINOWN?= bin
10BINMODE?= 555
11
12_SUBDIRUSE: .USE
13 @for entry in ${SUBDIR}; do \
14 (if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \
14 echo "===> $${entry}.${MACHINE}"; \
15 cd ${.CURDIR}/$${entry}.${MACHINE}; \
15 echo "===> ${DIRPRFX}$${entry}.${MACHINE}"; \
16 edir=$${entry}.${MACHINE}; \
17 cd ${.CURDIR}/$${edir}; \
16 else \
18 else \
17 echo "===> $$entry"; \
18 cd ${.CURDIR}/$${entry}; \
19 echo "===> ${DIRPRFX}$$entry"; \
20 edir=$${entry}; \
21 cd ${.CURDIR}/$${edir}; \
19 fi; \
22 fi; \
20 ${MAKE} ${.TARGET:realinstall=install}); \
23 ${MAKE} ${.TARGET:realinstall=install} DIRPRFX=${DIRPRFX}$$edir/); \
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; \

--- 10 unchanged lines hidden (view full) ---

39.if !target(cleandir)
40cleandir: _SUBDIRUSE
41.endif
42
43.if !target(depend)
44depend: _SUBDIRUSE
45.endif
46
24 done
25
26${SUBDIR}::
27 @if test -d ${.TARGET}.${MACHINE}; then \
28 cd ${.CURDIR}/${.TARGET}.${MACHINE}; \
29 else \
30 cd ${.CURDIR}/${.TARGET}; \
31 fi; \

--- 10 unchanged lines hidden (view full) ---

42.if !target(cleandir)
43cleandir: _SUBDIRUSE
44.endif
45
46.if !target(depend)
47depend: _SUBDIRUSE
48.endif
49
47.if !target(manpages)
48manpages: _SUBDIRUSE
50.if !target (maninstall)
51maninstall: _SUBDIRUSE
49.endif
50
51.if !target(install)
52.if !target(beforeinstall)
53beforeinstall:
54.endif
55.if !target(afterinstall)
56afterinstall:
57.endif
58install: afterinstall
59afterinstall: realinstall
60realinstall: beforeinstall _SUBDIRUSE
61.endif
52.endif
53
54.if !target(install)
55.if !target(beforeinstall)
56beforeinstall:
57.endif
58.if !target(afterinstall)
59afterinstall:
60.endif
61install: afterinstall
62afterinstall: realinstall
63realinstall: beforeinstall _SUBDIRUSE
64.endif
62.if !target(maninstall)
63maninstall: _SUBDIRUSE
64.endif
65
66.if !target(lint)
67lint: _SUBDIRUSE
68.endif
69
70.if !target(obj)
71obj: _SUBDIRUSE
72.endif
73
65
66.if !target(lint)
67lint: _SUBDIRUSE
68.endif
69
70.if !target(obj)
71obj: _SUBDIRUSE
72.endif
73
74.if !target(objdir)
75objdir: _SUBDIRUSE
76.endif
77
78.if !target(tags)
79tags: _SUBDIRUSE
80.endif
74.if !target(tags)
75tags: _SUBDIRUSE
76.endif