It seems to be possible with the .SILENT special target $ cat Makefile ifeq ($(V),0) .SILENT: endif
all: tata toto toto: echo 'hi' tata: echo 'hello' $ make V=0 V=1 V=0 V=1 Now if you alias make to make V=0 you have a silent make by default To return to normal behavior, you can just make V=1 Note that .SILENT is deprecated It seems that make should have a command line option to return to the verbose mode That is if I alias 'make' to let's say 'make -s VAR=123', then I could still run make --verbose to return to the verbose mode.... Obviously if I run \make (to bypass the alias), I lose my other settings in the alias. Could this feature be implemented in the next minor version? -- Emmanuel On Tue, Nov 22, 2016 at 8:49 PM, Bob Proulx <b...@proulx.com> wrote: > Emmanuel Mayssat wrote: > > I am using a wrapper for the make utility. > > By default my wrapper is to run in silent mode (i.e. with -s flag) > > I would like to be able to reverse the silent flag with the same command > > line (more elegant!) > > > > Is there something like > > make -s -v > > that would return make to a verbose mode? > > Are you talking about the new default automake mode? > > https://autotools.io/automake/silent.html > <https://isolate.menlosecurity.com/readonly/https://autotools.io/automake/silent.html> > > > PS: Of course 'make' would work, but I don't want to touch the command > > prefix > > PS: Something like make VAR=value VAR=other_value VAR= > final_value which is > > a trick I use all the time. Is there something similar to reverse the > > silent mode? > > If it is the new automake silent default then try: > > configure --disable-silent-rules > > Or try: > > make V=1 > > You can set the default make command. Here are some examples. Set as > you desire. > > (setq compile-command "make") > (setq compile-command "make V=0") > (setq compile-command "make -j4 V=0") > > Of course if you are talking about something other than the new silent > automake rules then the above doesn't apply. > > Bob > _______________________________________________ Help-make mailing list Help-make@gnu.org https://lists.gnu.org/mailman/listinfo/help-make