Commit 25b7406d authored by David Gibson's avatar David Gibson

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: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 05b15e51
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment