diff --git a/Makefile b/Makefile index c7c2b77dc1b0697f34aa00ab0a09c2cf35036c63..b2b57fc5eb95a30f104242bb26f79fb036e5c683 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ # Just a collection of scripts -.PHONY: all autopep8 test +.PHONY: all autopep8 test help # Do the integration tests. # Accepts freestyle arguments like so: @@ -29,9 +29,26 @@ test: cd tests && pytest $(test_opts) + +# Just print the help. +define HELP +The most common targets: + +make test :: Do the integration tests. Accepts freestyle arguments like so: + `make test test_opts=test_foo.py -k test_function` +Prepare everything for running. +make autopep8 :: Autoformatting for all tests +make all :: Run autopep8 and test +endef +export HELP +help: + @echo "$$HELP" + + # Run the tests through autopep8. autopep8: autopep8 -ri tests + # Meta target to call the other targets. all: autopep8 test