From 74cf5f4cc5dc998ba0c825f478a6e09bd5adc95f Mon Sep 17 00:00:00 2001 From: gearnode Date: Wed, 8 Jan 2025 11:56:11 +0100 Subject: [PATCH] Fix format do not format all files Signed-off-by: Bryan Frimin --- GNUmakefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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)