From 26edcad5c5a185f0b02f80fa5dfe0fb3dc71c277 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 6 Sep 2022 07:49:15 -0500 Subject: [PATCH] docs: update install instructions --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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