[CRIU] [PATCH 2/2] nmk: don't use the FORCE, Luke!
Kir Kolyshkin
kir at openvz.org
Wed Feb 24 12:29:58 PST 2016
With GNU make, using .PHONY leads to the same result as using
the "FORCE" hack, but unlike FORCE is not a hack. Since we do not
plan to use any other make implementation than GNU make, let's not
provide FORCE in nmk.
For more details about why PHONY is better than FORCE, see
http://www.gnu.org/software/make/manual/make.html#index-FORCE
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
scripts/nmk/scripts/include.mk | 4 ----
1 file changed, 4 deletions(-)
diff --git a/scripts/nmk/scripts/include.mk b/scripts/nmk/scripts/include.mk
index c7dd7cc..6842a56 100644
--- a/scripts/nmk/scripts/include.mk
+++ b/scripts/nmk/scripts/include.mk
@@ -51,10 +51,6 @@ build-as := -r -R -f $(__nmk_dir)main.mk makefile=$$(1) obj=$$(2)
export build-as
#
-# Dummy target for force building.
-FORCE: ;
-
-#
# Footer.
$(__nmk_dir)scripts/include.mk:
@true
--
2.5.0
More information about the CRIU
mailing list