Subject: misc/4419: `make build' could have nicer ===> output
To: None <gnats-bugs@gnats.netbsd.org>
From: None <bgrayson@ece.utexas.edu>
List: netbsd-bugs
Date: 11/03/1997 08:33:07
>Number:         4419
>Category:       misc
>Synopsis:       `make build' could have nicer ===> output
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Nov  3 06:35:00 1997
>Last-Modified:
>Originator:     Brian Grayson
>Organization:
	Parallel and Distributed Systems
	Electrical and Computer Engineering
	The University of Texas at Austin
>Release:        Nov 2, 1997
>Environment:
NetBSD marvin 1.3_ALPHA NetBSD 1.3_ALPHA (MARVIN) #16: Mon Nov  3 07:52:00 CST 1997     bgrayson@marvin:/a/c3p0/home/c3p0/src/sys/arch/i386/compile/MARVIN i386

>Description:
	When doing an incremental ``make build'', many
	subdirectories do not require any actions, so the output
	looks like:
	===> usr.sbin/named/ndc
	===> usr.sbin/named/reload
	===> usr.sbin/named/restart
	===> usr.sbin/named/dig

	If there are screens and screens of such output, it is
	not immediately apparent which stage the build is at:  is
	it doing the make depend, the make includes, the make
	all, or the make install?

	With the patch below, it changes the output to be like:

	includes ===> lib
	includes ===> lib/csu
	includes ===> lib/csu/i386
	...
	depend ===> lib
	depend ===> lib/csu
	depend ===> lib/csu/i386
	...
	all ===> lib
	all ===> lib/csu
	all ===> lib/csu/i386
	...
	install ===> lib
	install ===> lib/csu
	install ===> lib/csu/i386

	This is mostly an appearance thing, so if the Powers That
	Be don't think this is a worthy change, just close the PR.  :)
	But it seems handy to me.

>How-To-Repeat:
	If one is doing make's with UPDATE set, do a make
	build, touch a source file, and then do a make build.
	Notice how difficult it is to see how many more minutes
	it'll take.
	
>Fix:
--- bsd.subdir.mk.orig  Mon Nov  3 08:22:57 1997
+++ bsd.subdir.mk       Mon Nov  3 08:22:40 1997
@@ -22,7 +22,7 @@
 .for targ in ${TARGETS}
 .PHONY: ${targ}-${dir}
 ${targ}-${dir}: .MAKE
-       @echo "===> ${_THISDIR_}${dir}"
+       @echo "${targ} ===> ${_THISDIR_}${dir}"
        @cd ${.CURDIR}/${dir}; \
        ${MAKE} "_THISDIR_=${_THISDIR_}${dir}/" ${targ}
 subdir-${targ}: ${targ}-${dir}

	
	
>Audit-Trail:
>Unformatted: