From: David Gibson Date: Sat, 24 Dec 2016 12:46:29 +0000 (+1100) Subject: Makefile: Make module checks depend on info file X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=25b7406d11ea3703be864097af66ce95611dde72;p=ccan Makefile: Make module checks depend on info file Changing the _info file can change how ccanlint assesses the module. Therefore, if the _info file changes, we should re-run ccanlint module tests with make check. We didn't previously have a dependency for that, though, so this adds it. Signed-off-by: David Gibson --- diff --git a/Makefile b/Makefile index a9dfed10..d1e08a37 100644 --- a/Makefile +++ b/Makefile @@ -71,7 +71,7 @@ $(LINT): $(LINT).c $(LINT_OBJS) TEST_DEPS := $(MODULES:%=%/.d) # We produce .ok files when the tests succeed -%.ok: $(LINT) +%.ok: $(LINT) %info $(PRE)$(LINT) $(LINT_OPTS$(notdir $@)) --deps-fail-ignore $(LINTFLAGS) $(dir $*) && touch $@ check: $(MODULES:%=%/.ok)