Add QUIET=1 option for make
authorJouni Malinen <j@w1.fi>
Fri, 26 Dec 2014 10:49:03 +0000 (12:49 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 29 Dec 2014 13:49:05 +0000 (15:49 +0200)
This can be used to reduce verbosity for build messages.

Signed-off-by: Jouni Malinen <j@w1.fi>
hostapd/Makefile
src/lib.rules
wlantest/Makefile
wpa_supplicant/Makefile

index d1143bb..e64c249 100644 (file)
@@ -913,6 +913,10 @@ ifeq ($(V), 1)
 Q=
 E=true
 endif
+ifeq ($(QUIET), 1)
+Q=@
+E=true
+endif
 
 ifdef CONFIG_CODE_COVERAGE
 %.o: %.c
index b260d25..0c79d99 100644 (file)
@@ -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) $<
index 0ccd615..320fdbb 100644 (file)
@@ -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) $<
index c2f8d01..06ba18f 100644 (file)
@@ -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 $< $@