Skip to content

Instantly share code, notes, and snippets.

@cladmi
Last active January 18, 2019 15:58
Show Gist options
  • Save cladmi/8eae8ba332909e863b124c8a93cbe140 to your computer and use it in GitHub Desktop.
Save cladmi/8eae8ba332909e863b124c8a93cbe140 to your computer and use it in GitHub Desktop.
# Do not parse and export all the build variables
# This is a HACK to prevent issues when running `make` inside of `make`
GLOBAL_GOALS += time-make
# Handle that 'BOARD' is overwritten when using a global goal
time-make: BOARD:=$(BOARD)
.PHONY: time-make
time-make:
@echo $@: ${BOARD}
time make clean all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment