Project

General

Profile

« Previous | Next » 

Revision 9721

lib/sh/make.sh: make(): at verbosity < 3, hide messages about making included Makefiles. this makes the make output much more readable when a Makefile contains an include statement, because there won't be a ton of log messages every time a Makefile is included. this filtering is so useful that it probably makes sense to run make for any of our Makefiles using `lib/runscripts/util.run make ...` instead of plain make. compare e.g. `make inputs/ACAD/Specimen/map.csv` (53 lines of output) and `lib/runscripts/util.run make inputs/ACAD/Specimen/map.csv` (17 lines of output, 1/3 as much).

View differences:

lib/sh/make.sh
34 34
make() # usage: table_make target...
35 35
{
36 36
	echo_func
37
	cmd_log_fd=1 self $(if ! can_log; then echo '--silent '; fi)"$@"
37
	(
38
		# at verbosity < 3, hide messages about making included Makefiles
39
		# this can reduce # lines of output to 1/3 as much
40
		if ! "log+" 2 can_log; then fd="$log_fd" filter_fd grep -vE \
41
'^make( ([^-]\S*)?|\[\d+\]: .*)Makefile'; fi
42
		cmd_log_fd=1 self $(if ! can_log; then echo '--silent '; fi)"$@"
43
	)
38 44
}
39 45

  
40 46
top_make() { echo_func; make --directory="$top_dir" "$@"; }

Also available in: Unified diff