Skip to content

Instantly share code, notes, and snippets.

@noahp
Created March 30, 2022 01:10
Show Gist options
  • Save noahp/a4d1d7b408bab7003f5d83797c9226f8 to your computer and use it in GitHub Desktop.
Save noahp/a4d1d7b408bab7003f5d83797c9226f8 to your computer and use it in GitHub Desktop.
# require make 4.3+ for grouped targets
MINIMUM_MAKE_VERSION = 4.3
MAKE_TEST_VERSION = $(shell printf "%s\n%s" $(MAKE_VERSION) $(MINIMUM_MAKE_VERSION) | sort --version-sort)
ifneq ($(MINIMUM_MAKE_VERSION),$(firstword $(MAKE_TEST_VERSION)))
$(error Make version is too low. Please upgrade to $(MINIMUM_MAKE_VERSION) or higher.)
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment