[CRIU] [PATCH] [style] simplify dummy rules

Kir Kolyshkin kir at openvz.org
Tue Jan 7 15:16:02 PST 2014


Use true instead of echo >/dev/null -- same effect, less bytes.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 scripts/Makefile.build   | 2 +-
 scripts/Makefile.rules   | 2 +-
 scripts/Makefile.version | 2 +-
 test/zdtm/lib/Makefile   | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/scripts/Makefile.build b/scripts/Makefile.build
index 359dd5c..2e18c3b 100644
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@ -230,7 +230,7 @@ cleanup-y += $(_cleanup-y)
 .PHONY: all clean
 
 all: $(_all)
-	@echo > /dev/null
+	@true
 
 clean:
 	$(E) "  CLEANUP " $(obj)
diff --git a/scripts/Makefile.rules b/scripts/Makefile.rules
index d207a05..2291310 100644
--- a/scripts/Makefile.rules
+++ b/scripts/Makefile.rules
@@ -49,4 +49,4 @@ endef
 ## together with .SUFFIXES not cleaned, this
 ## will slow down the build procedure
 scripts/Makefile.rules::
-	@echo > /dev/null
+	@true
diff --git a/scripts/Makefile.version b/scripts/Makefile.version
index 6aecb0b..f496357 100644
--- a/scripts/Makefile.version
+++ b/scripts/Makefile.version
@@ -22,4 +22,4 @@ $(VERSION_HEADER): Makefile scripts/Makefile.version
 ## together with .SUFFIXES not cleaned, this
 ## will slow down the build procedure
 scripts/Makefile.version::
-	@echo > /dev/null
+	@true
diff --git a/test/zdtm/lib/Makefile b/test/zdtm/lib/Makefile
index f494df6..37d99ba 100644
--- a/test/zdtm/lib/Makefile
+++ b/test/zdtm/lib/Makefile
@@ -14,7 +14,7 @@ DEPEND.c = $(COMPILE.c) -MM -MP
 	$(DEPEND.c) $(OUTPUT_OPTION) $<
 
 all:	$(LIB)
-	@echo > /dev/null
+	@true
 install: all
 .PHONY: all install
 
-- 
1.8.1.4



More information about the CRIU mailing list