In a stream of Random Thoughts ..

Musings and rummaging …

Today I Found: Taskfile.dev

Being slightly annoyed with GNU Make and Makefiles, I have tried several alternatives. I have written shell scripts, since it was a go project I tried writing using magefile.

I have now discovered Task. I am so far very happy.

I've converted both my standard Makefile and also my recently created magefile.go versions to Task. In order to help my muscle memory, I have created a small Makefile to wrap Task. The Makefile looks like this:

##
## Small makefile, handling over control to Task
##

.PHONY: help

# Figure out, loud or quiet?
Q := $(if $V,,@)

help:
        $Q task -l

%:
        $Q task $(if $V,-v,) $*

# end