Subject: misc/1222: diffs to share/mk/bsd.subdir.mk to show directory hierarchy
To: None <gnats-admin@sun-lamp.pc.cs.cmu.edu>
From: Alistair G. Crooks <agc@uts.amdahl.com>
List: netbsd-bugs
Date: 07/13/1995 04:50:04
>Number: 1222
>Category: misc
>Synopsis: diffs to share/mk/bsd.subdir.mk to show directory hierarchy
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: misc-bug-people (Misc Bug People)
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Jul 13 04:50:02 1995
>Originator: Alistair G. Crooks
>Organization:
Amdahl Corporation
>Release: July 8th 1995
>Environment:
NetBSD/i386 1.0A, July 8th sources
System: NetBSD rumpy.osg.uk.amdahl.com 1.0A NetBSD 1.0A (RUMPY) #0: Mon Jul 10 11:41:50 BST 1995 root@rumpy.osg.uk.amdahl.com:/usr/src/sys/arch/i386/compile/RUMPY i386
>Description:
The current bsd.subdir.mk shows the move into a subdirectory
with a line "===> subdirectory name", but doesn't reflect the
directory hierarchy - this patch prints three '=' for each level
of sub-directory. e.g. (and I hope this makes it through gnats)
===> csu
======> i386
cc -O -pipe -DLIBC_SCCS -I/usr/src/lib/csu/i386/.. -c -DCRT0 -DDYNAMIC /usr/src/lib/csu/i386/crt0.c
ld -x -r crt0.o
mv a.out crt0.o
cc -O -pipe -DLIBC_SCCS -I/usr/src/lib/csu/i386/.. -c -DMCRT0 /usr/src/lib/csu/i386/crt0.c -o gcrt0.o
ld -x -r gcrt0.o
mv a.out gcrt0.o
cc -O -pipe -DLIBC_SCCS -I/usr/src/lib/csu/i386/.. -c -DSCRT0 /usr/src/lib/csu/i386/crt0.c -o scrt0.o
ld -x -r scrt0.o
mv a.out scrt0.o
======> c++
cc -O -pipe -DLIBC_SCCS -fpic -c /usr/src/lib/csu/c++/c++rt0.c
===> libarch
>How-To-Repeat:
(cd /usr/src/lib ; make)
>Fix:
*** /usr/src/share/mk/bsd.subdir.mk 1995/07/13 08:22:04 1.1
--- /usr/src/share/mk/bsd.subdir.mk 1995/07/13 08:22:19
***************
*** 8,21 ****
_SUBDIRUSE: .USE
.if defined(SUBDIR)
@for entry in ${SUBDIR}; do \
! (set -e; if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \
! echo "===> $${entry}.${MACHINE}"; \
cd ${.CURDIR}/$${entry}.${MACHINE}; \
else \
! echo "===> $$entry"; \
cd ${.CURDIR}/$${entry}; \
fi; \
! ${MAKE} ${.TARGET:S/realinstall/install/:S/.depend/depend/}); \
done
${SUBDIR}::
--- 8,31 ----
_SUBDIRUSE: .USE
.if defined(SUBDIR)
@for entry in ${SUBDIR}; do \
! (set -e; if test X"$$_PLEVEL_" = X""; then \
! _PLEVEL_=0; \
! fi; \
! lev=0; \
! out=""; \
! while test $$lev -le $$_PLEVEL_; do \
! out="===$$out"; \
! lev=`expr $$lev + 1`; \
! done; \
! if test -d ${.CURDIR}/$${entry}.${MACHINE}; then \
! echo "$$out> $${entry}.${MACHINE}"; \
cd ${.CURDIR}/$${entry}.${MACHINE}; \
else \
! echo "$$out> $$entry"; \
cd ${.CURDIR}/$${entry}; \
fi; \
! ${MAKE} _PLEVEL_=$$lev \
! ${.TARGET:S/realinstall/install/:S/.depend/depend/}); \
done
${SUBDIR}::
>Audit-Trail:
>Unformatted: