Skip to content

Commit

Permalink
use more portable, jq-based task list
Browse files Browse the repository at this point in the history
Signed-off-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
willmurphyscode committed May 13, 2024
1 parent 7faaeda commit 0e44e95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ make-default: $(TASK)
@$(TASK)

# for those of us that can't seem to kick the habit of typing `make ...` lets wrap the superior `task` tool
TASKS := $(shell bash -c "$(TASK) -l | grep '^\* ' | cut -d' ' -f2 | tr -d ':' | tr '\n' ' '" ) $(shell bash -c "$(TASK) -l | grep 'aliases:' | cut -d ':' -f 3 | tr '\n' ' ' | tr -d ','")
TASKS := $(shell $(TASK) -l -j | jq -r '[.tasks[] | .name, (.aliases // empty)[]] | unique | join(" ")')

.PHONY: $(TASKS)
$(TASKS): $(TASK)
Expand Down

0 comments on commit 0e44e95

Please sign in to comment.