[OpenWrt-Devel] is there some reason to be using "FORCE" prereqs in Makefiles?

Robert P. J. Day rpjday at crashcourse.ca
Mon Sep 22 09:09:13 EDT 2014

  still wandering around the openwrt code base and, every so often, i
come across the explicit use of "FORCE" prerequisites, like this in

clean: FORCE
        rm -rf $(BUILD_DIR) $(BIN_DIR)

dirclean: clean
        rm -rf $(TMP_DIR)

# check prerequisites before starting to build
prereq: $(package/stamp-prereq) ;

world: prepare $(package/stamp-compile) FORCE
        @$(MAKE) package/index

.PHONY: clean dirclean prereq prepare world

  which seems a bit weird, given that targets "clean" and "world" are
listed as .PHONY. is there something subtle about including "FORCE"
there, or is that just a remnant of earlier design that i can submit a
patch to remove? just being pedantic again.



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