]> git.ozlabs.org Git - ccan/commitdiff
Makefile: Make module checks depend on info file
authorDavid Gibson <david@gibson.dropbear.id.au>
Sat, 24 Dec 2016 12:46:29 +0000 (23:46 +1100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Sat, 24 Dec 2016 12:46:29 +0000 (23:46 +1100)
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 <david@gibson.dropbear.id.au>
Makefile

index a9dfed10f03844bc0c86e029b823a12373df4a8d..d1e08a375277269a1004d301487a9a01621b0154 100644 (file)
--- 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)