mk: allow application to override clean

In some cases application may want to have additional rules
for clean. This can be handled by allowing the double colon
form of rule.

 https://www.gnu.org/software/make/manual/html_node/Double_002dColon.html

Single colon and double colon rules for same target causes
an error.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Thomas Monjalon <thomas.monjalon@6wind.com>
This commit is contained in:
Stephen Hemminger 2015-01-22 22:19:08 -08:00 committed by Thomas Monjalon
parent 9f516206d9
commit ca0038c009

View File

@ -325,7 +325,7 @@ $(RTE_OUTPUT)/app/$(APP).map: $(APP)
# Clean all generated files
#
.PHONY: clean
clean: _postclean
clean:: _postclean
$(Q)rm -f $(_BUILD_TARGETS) $(_INSTALL_TARGETS) $(_CLEAN_TARGETS)
.PHONY: doclean