Last active
January 27, 2023 13:18
-
-
Save tommorris/8d5ee048b1b7209661e9ce5846b31e0e to your computer and use it in GitHub Desktop.
Makefile examples used in blogpost
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
pkg="a" | |
include "../shared/base.mk" |
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
pkg="a" | |
check: | |
poetry run check_script.py --my-flag -- $(some_var) | |
test: | |
poetry run python my_special_test.py | |
%: | |
@$(MAKE) -f ../shared/base.mk $@ | |
.PHONY: check test |
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
pkg="a" | |
include ../shared/vars.mk | |
check: | |
poetry run check_script.py --my-flag -- $(some_var) | |
test: | |
poetry run python my_special_test.py | |
%: | |
@$(MAKE) -f ../shared/targets.mk $@ | |
.PHONY: check test |
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
pkg="a" | |
include ../shared/base.mk | |
check: check-default | |
mypy: mypy-default | |
serve: serve-default | |
test: test-default | |
.PHONY: check mypy serve test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment