[OpenWrt-Devel] [PATCH][Makefile] Remove redundant FORCE dependencies from .PHONY targets

Robert P. J. Day rpjday at crashcourse.ca
Sat Sep 13 03:44:23 EDT 2014

Since clean and world are declared as .PHONY, remove dependencies on

Signed-off-by: Robert P. J. Day <rpjday at crashcourse.ca>


  as long as i'm reading this correctly, since both clean and world
are declared as .PHONY, there is no need for the older-style FORCE
dependency, is there?

diff --git a/Makefile b/Makefile
index 91b6946..0043347 100644
--- a/Makefile
+++ b/Makefile
@@ -49,7 +49,7 @@ printdb:

 prepare: $(target/stamp-compile)

-clean: FORCE

 dirclean: clean
@@ -83,7 +83,7 @@ prereq: $(target/stamp-prereq) tmp/.prereq_packages

 prepare: .config $(tools/stamp-install) $(toolchain/stamp-install)
-world: prepare $(target/stamp-compile) $(package/stamp-compile) $(package/stamp-install) $(target/stamp-install) FORCE
+world: prepare $(target/stamp-compile) $(package/stamp-compile) $(package/stamp-install) $(target/stamp-install)
 	$(_SINGLE)$(SUBMAKE) -r package/index

 # update all feeds, re-create index files, install symlinks


Robert P. J. Day                                 Ottawa, Ontario, CANADA

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list