diff --git a/GNUmakefile b/GNUmakefile index 550bda398..a21342d6a 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,13 +1,18 @@ NPX?= npx PRETTIER?= $(NPX) prettier + +CONTROL_SRC:= $(shell find ./controls -type f -name "*.md") + + + .PHONY: all all: fmt .PHONY: fmt fmt: - $(PRETTIER) --write --prose-wrap always controls/**/*.md + $(PRETTIER) --write --prose-wrap always $(CONTROL_SRC) .PHONY: fmt-check fmt-check: - $(PRETTIER) --check --prose-wrap always controls/**/*.md + $(PRETTIER) --check --prose-wrap always $(CONTROL_SRC)