-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update numeric.mk to match other projects.
(Fixes some issues with make 3.8x)
- Loading branch information
1 parent
231e567
commit b31b751
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## | ||
|
||
include tools/numeric.mk | ||
|
||
define assert | ||
$(if $1,,$(error assert failed: $2)) | ||
endef | ||
|
||
define assert_n | ||
$(if $1,$(error assert_n failed: $2),) | ||
endef | ||
|
||
.PHONY: tools_test_numeric | ||
|
||
tools_test_numeric: | ||
$(call assert_n,$(call version_ge,9.0,9.1)) | ||
$(call assert,$(call version_ge,9.2,9.1)) | ||
$(call assert,$(call version_ge,9.0,9.0)) | ||
$(call assert_n,$(call version_ge,9.4,13)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters