diff --git a/Makefile.include b/Makefile.include index 753147068444f60ca61e20298d07cb3092f8db1d..f613c16c964b7019bab559bf7ecda5e580287529 100644 --- a/Makefile.include +++ b/Makefile.include @@ -1,3 +1,6 @@ +# Globally set default goal to `all` +.DEFAULT_GOAL := all + # include Makefile.local if it exists -include Makefile.local diff --git a/boards/common/frdm/Makefile.include b/boards/common/frdm/Makefile.include index f71451d9feed3743c45bda8b67a9afa76ce15ec7..d147a04baf31c90242ec214c05c123946f93d194 100644 --- a/boards/common/frdm/Makefile.include +++ b/boards/common/frdm/Makefile.include @@ -26,9 +26,6 @@ export OPENOCD_EXTRA_INIT .PHONY: flash flash: $(RIOTCPU)/$(CPU)/dist/wdog-disable.bin -# Reset the default goal. -.DEFAULT_GOAL := - export OPENOCD_CONFIG ?= $(RIOTBOARD)/common/frdm/dist/old-openocd-$(CPU_FAMILY).cfg endif diff --git a/boards/mulle/Makefile.include b/boards/mulle/Makefile.include index ed3d0b144d0fbe7027202a764ee03066c987e272..9a7c74a7bea5d32175e087b88749509ebfb7845e 100644 --- a/boards/mulle/Makefile.include +++ b/boards/mulle/Makefile.include @@ -61,9 +61,6 @@ export PRE_FLASH_CHECK_SCRIPT = $(RIOTCPU)/$(CPU)/dist/check-fcfield-elf.sh .PHONY: flash flash: $(RIOTCPU)/$(CPU)/dist/wdog-disable.bin -# Reset the default goal. -.DEFAULT_GOAL := - # this board uses openocd include $(RIOTMAKE)/tools/openocd.inc.mk diff --git a/boards/pba-d-01-kw2x/Makefile.include b/boards/pba-d-01-kw2x/Makefile.include index cbb113375309571f979e27a216f9cea190264342..b1cf0565b3118c304edfb89715aab830b81fb285 100644 --- a/boards/pba-d-01-kw2x/Makefile.include +++ b/boards/pba-d-01-kw2x/Makefile.include @@ -15,9 +15,6 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*))) .PHONY: flash flash: $(RIOTCPU)/$(CPU)/dist/wdog-disable.bin -# Reset the default goal. -.DEFAULT_GOAL := - # We need special handling of the watchdog if we want to speed up the flash # verification by using the MCU to compute the image checksum after flashing. # wdog-disable.bin is a precompiled binary which will disable the watchdog and diff --git a/cpu/kinetis/Makefile.include b/cpu/kinetis/Makefile.include index 046337a006e3e539e5f429e47edc7458e0e14596..59a0b948fd6185be8071762fb50f645848606ec5 100644 --- a/cpu/kinetis/Makefile.include +++ b/cpu/kinetis/Makefile.include @@ -44,7 +44,4 @@ USEMODULE += periph_wdog $(RIOTCPU)/$(CPU)/dist/wdog-disable.bin: $(RIOTCPU)/$(CPU)/dist/wdog-disable.s $(Q)$(MAKE) -C $(RIOTCPU)/$(CPU)/dist/ $(notdir $@) -# Reset the default goal to not make wdog-disable.bin the default target. -.DEFAULT_GOAL := - include $(RIOTMAKE)/arch/cortexm.inc.mk diff --git a/makefiles/scan-build.inc.mk b/makefiles/scan-build.inc.mk index 0d4d6517240c8d3beeff7b1a03170a315a998737..f91c691b77b5f65ef4374dc0f6f8fec7cf10610b 100644 --- a/makefiles/scan-build.inc.mk +++ b/makefiles/scan-build.inc.mk @@ -87,6 +87,3 @@ else echo "No report found"; \ fi endif - -# Reset the default goal. -.DEFAULT_GOAL :=