From 010fa245bd0a0d13d135e6e9ea38d3715e4c8699 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 26 Dec 2014 12:49:03 +0200 Subject: [PATCH] Add QUIET=1 option for make This can be used to reduce verbosity for build messages. Signed-off-by: Jouni Malinen --- hostapd/Makefile | 4 ++++ src/lib.rules | 4 ++++ wlantest/Makefile | 4 ++++ wpa_supplicant/Makefile | 10 ++++++++-- 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/hostapd/Makefile b/hostapd/Makefile index d1143bbcb..e64c24976 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -913,6 +913,10 @@ ifeq ($(V), 1) Q= E=true endif +ifeq ($(QUIET), 1) +Q=@ +E=true +endif ifdef CONFIG_CODE_COVERAGE %.o: %.c diff --git a/src/lib.rules b/src/lib.rules index b260d25a0..0c79d992a 100644 --- a/src/lib.rules +++ b/src/lib.rules @@ -15,6 +15,10 @@ ifeq ($(V), 1) Q= E=true endif +ifeq ($(QUIET), 1) +Q=@ +E=true +endif %.o: %.c $(Q)$(CC) -c -o $@ $(CFLAGS) $< diff --git a/wlantest/Makefile b/wlantest/Makefile index 0ccd61589..320fdbbc2 100644 --- a/wlantest/Makefile +++ b/wlantest/Makefile @@ -32,6 +32,10 @@ ifeq ($(V), 1) Q= E=true endif +ifeq ($(QUIET), 1) +Q=@ +E=true +endif %.o: %.c $(Q)$(CC) -c -o $@ $(CFLAGS) $< diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index c2f8d01df..06ba18fdb 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -1595,6 +1595,10 @@ ifeq ($(V), 1) Q= E=true endif +ifeq ($(QUIET), 1) +Q=@ +E=true +endif dynamic_eap_methods: $(EAPDYN) @@ -1687,10 +1691,12 @@ else endif %.service: %.service.in - sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@ + $(Q)sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@ + @$(E) " sed" $< %@.service: %.service.arg.in - sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@ + $(Q)sed -e 's|\@BINDIR\@|$(BINDIR)|g' $< >$@ + @$(E) " sed" $< wpa_supplicant.exe: wpa_supplicant mv -f $< $@