This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push: new 81968ce boards: Allow boards to extend clean and distclean by a double colon target instead of calling a variable. 81968ce is described below commit 81968ce562ec968d8b1fd5785cdc49d980a92f3d Author: Abdelatif Guettouche <abdelatif.guettou...@espressif.com> AuthorDate: Sat Nov 28 16:31:32 2020 +0000 boards: Allow boards to extend clean and distclean by a double colon target instead of calling a variable. Signed-off-by: Abdelatif Guettouche <abdelatif.guettou...@espressif.com> --- boards/Board.mk | 6 ++---- boards/xtensa/esp32/esp32-core/src/Makefile | 8 +++++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/boards/Board.mk b/boards/Board.mk index 51875d6..aab3957 100644 --- a/boards/Board.mk +++ b/boards/Board.mk @@ -125,16 +125,14 @@ depend: .depend context:: -clean: +clean:: $(call DELFILE, libboard$(LIBEXT)) $(call DELFILE, $(ETCSRC)) $(call DELDIR, $(ETCDIR)) $(call CLEAN) - $(EXTRA_CLEAN) -distclean: clean +distclean:: clean $(call DELFILE, Make.dep) $(call DELFILE, .depend) - $(EXTRA_DISTCLEAN) -include Make.dep diff --git a/boards/xtensa/esp32/esp32-core/src/Makefile b/boards/xtensa/esp32/esp32-core/src/Makefile index 67d21b1..f8e3041 100644 --- a/boards/xtensa/esp32/esp32-core/src/Makefile +++ b/boards/xtensa/esp32/esp32-core/src/Makefile @@ -79,9 +79,7 @@ endif SCRIPTIN = $(SCRIPTDIR)$(DELIM)esp32.template.ld SCRIPTOUT = $(SCRIPTDIR)$(DELIM)esp32_out.ld -EXTRA_DISTCLEAN = $(call DELFILE, $(SCRIPTOUT)) - -.PHONY = context +.PHONY = context distclean include $(TOPDIR)/boards/Board.mk @@ -89,3 +87,7 @@ $(SCRIPTOUT): $(SCRIPTIN) $(CONFIGFILE) $(Q) $(CC) -isystem $(TOPDIR)/include -C -P -x c -E $(SCRIPTIN) -o $@ context:: $(SCRIPTOUT) + +distclean:: + $(call DELFILE, $(SCRIPTOUT)) +