STYLES := $(patsubst templates/%/render.sh,%,$(wildcard templates/*/render.sh)) help: @printf "make %s\n" \ render-styles \ $(patsubst %,render-style-%-stdout,$(STYLES)) \ $(patsubst %,render-example-card-%-stdout,$(STYLES)) \ $(patsubst %,render-style-%-live,$(STYLES)) \ $(patsubst %,render-example-card-%-live,$(STYLES)) \ $(patsubst %,render-style-%,$(STYLES)) \ $(patsubst %,render-example-card-%,$(STYLES)) render-styles: $(patsubst %,render-style-%,$(STYLES)) render-style-%-stdout: templates/%/render.sh ./"$<" | bat --language html --plain --paging never render-example-card-%-stdout: templates/%/example.sh ./"$<" | bat --language html --plain --paging never render-style-%-live: fd --type f . templates/$* | entr make render-style-$*-stdout render-example-card-%-live: fd --type f . templates/$* | entr make render-example-card-$*-stdout render-style-%: make --quiet render-style-$*-stdout > pvv/styles/$*.html render-example-card-%: ./"$<"