From f15e231f123c0da9d1d3c4ebc23fd0aefa7cb661 Mon Sep 17 00:00:00 2001 From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com> Date: Thu, 19 Aug 2021 17:35:59 +0200 Subject: [PATCH] Makefile: add watch-check-go-test and watch-check-go targets Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com> --- Makefile | 4 ++++ cspell.json | 1 + 2 files changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 14a674a..3994a8f 100644 --- a/Makefile +++ b/Makefile @@ -129,3 +129,7 @@ cmd/sysotad/sysota-boot-config.InstallDir = $(bindir) cmd/sysotad/sysota-boot-config.SymlinkTarget = sysotad install: cmd/sysotad/sysota-boot-config.SymlinkTarget = $(cmd/sysotad/sysotad.InstallDir)/sysotad $(eval $(call ZMK.Expand,Symlink,cmd/sysotad/sysota-boot-config)) + +.PHONY: watch-check% +watch-check-go-test watch-check: watch-check%: + find -name '*.go' | entr -c $(MAKE) check$* diff --git a/cspell.json b/cspell.json index 602cfc4..1ff838f 100644 --- a/cspell.json +++ b/cspell.json @@ -45,6 +45,7 @@ "EEPROM", // Electrically-erasable, programmable read only memory "Embest", // company name "endef", // end definition, part of define ... endef syntax in Make + "entr", // command line tool "errcheck", // missing error check tool for Go "esac", // shell case ... esac construct "eval", // make and shell evaluate function -- GitLab