diff --git a/README.md b/README.md index bd0a3f9..a2c7b39 100644 --- a/README.md +++ b/README.md @@ -30,14 +30,14 @@ If someone tries to invoke `make help` it will download `.task.mk` for them. ```make -include .task.mk -$(if $(filter help,$(MAKECMDGOALS)),.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v22.9.5/task.mk -o .task.mk) +$(if $(filter help,$(MAKECMDGOALS)),$(if $(wildcard .task.mk),,.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v22.9.5/task.mk -o .task.mk)) ``` -If you intend to use any of the other features like `tprint` (see below), -I'd recommend committing `.task.mk` into version control so behavior is consistent. +You might also consider making it a consistently downloaded dependency if you plan to use any of it's advanced feature set, by dropping the `$(MAKECMDGOALS)` check. -```bash -curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v22.9.5/task.mk -o .task.mk +```make +-include .task.mk +$(if $(wildcard .task.mk),,.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v22.9.5/task.mk -o .task.mk) ``` ## Usage