[PATCH] Have make be more silent by default
Jef Driesen
jef at libdivecomputer.org
Thu Jan 8 07:15:22 PST 2015
On 2015-01-06 22:33, Anton Lundin wrote:
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -4,6 +4,7 @@ if ENABLE_EXAMPLES
> SUBDIRS += examples
> endif
>
> +AM_MAKEFLAGS = -s
> ACLOCAL_AMFLAGS = -I m4
Although I like the idea, this patch doesn't work for me.
Without the patch, this is what I get:
$ make -C ../linux/
make: Entering directory `/home/jef/Projects/libdivecomputer/work/linux'
cd ../source && /bin/bash
/home/jef/Projects/libdivecomputer/work/source/missing automake-1.14
--foreign Makefile
cd . && /bin/bash ./config.status Makefile
config.status: creating Makefile
make: Leaving directory `/home/jef/Projects/libdivecomputer/work/linux'
make: Entering directory `/home/jef/Projects/libdivecomputer/work/linux'
make all-recursive
make[1]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux'
Making all in include
make[2]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux/include'
Making all in libdivecomputer
make[3]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux/include/libdivecomputer'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux/include/libdivecomputer'
make[3]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux/include'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux/include'
make[2]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux/include'
Making all in src
make[2]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux/src'
make all-am
make[3]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux/src'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux/src'
make[2]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux/src'
Making all in examples
make[2]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux/examples'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux/examples'
make[2]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux'
make[2]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux'
make[1]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux'
make: Leaving directory `/home/jef/Projects/libdivecomputer/work/linux'
And with the patch:
$ make -C ../linux/
make: Entering directory `/home/jef/Projects/libdivecomputer/work/linux'
cd ../source && /bin/bash
/home/jef/Projects/libdivecomputer/work/source/missing automake-1.14
--foreign Makefile
cd . && /bin/bash ./config.status Makefile
config.status: creating Makefile
make: Leaving directory `/home/jef/Projects/libdivecomputer/work/linux'
make: Entering directory `/home/jef/Projects/libdivecomputer/work/linux'
make -s all-recursive
make[1]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux'
Making all in include
make[2]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux/include'
Making all in libdivecomputer
make[2]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux/include'
Making all in src
make[2]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux/src'
make[2]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux/src'
Making all in examples
make[2]: Entering directory
`/home/jef/Projects/libdivecomputer/work/linux'
make[2]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux'
make[1]: Leaving directory
`/home/jef/Projects/libdivecomputer/work/linux'
make: Leaving directory `/home/jef/Projects/libdivecomputer/work/linux'
Only the lines starting with "make[3]:" are gone. If I pass the -s flag
directly (even without the patch) the output is much less verbose:
$ make -C ../linux/ -s
cd ../source && /bin/bash
/home/jef/Projects/libdivecomputer/work/source/missing automake-1.14
--foreign Makefile
cd . && /bin/bash ./config.status Makefile
config.status: creating Makefile
Making all in include
Making all in libdivecomputer
Making all in src
Making all in examples
Jef
More information about the devel
mailing list