improved 'silent.%' target a little bit (might be incompatible with
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 25 Oct 2005 16:08:31 +0000 (16:08 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Tue, 25 Oct 2005 16:08:31 +0000 (16:08 +0000)
older grep but it's for developing only...)

git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2177 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/Makefile.am

index 2ce38df..649babb 100644 (file)
@@ -127,14 +127,16 @@ endif
 VSERVER_LDADDS =       $(LIBVSERVER) $(DIET_COMPAT_LDADDS)
 
 silent.%:              FORCE
-                       @t=$$(mktemp /tmp/build.XXXXXX) && \
-                       $(MAKE) '$*' -s 2>$$t >/dev/null && \
-                       ( cat $$t | \
-                               grep -v ': In function' | \
-                               grep -v 'your code still has assertions enabled' | \
-                               grep -v ' is obsoleted' | \
-                               grep -v 'warning: #warning'; \
-                               rm -f $$t || : )
+                       @t=$$($(MKTEMP) -d /tmp/build.XXXXXX) && \
+                       trap "rm -rf $$t" EXIT && \
+                       mkfifo $$t/fifo && \
+                       ( grep --line-buffered -v \
+                                    -e ': In function' \
+                                    -e 'your code still has assertions enabled' \
+                                    -e ' is obsoleted' \
+                                    -e 'warning: #warning' <$$t/fifo & ) && \
+                       exec 2>$$t/fifo && \
+                       $(MAKE) '$*' -s >/dev/null
 
 
 linuxvirtual.h: