ccan.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Makefile: Make module checks depend on info file
@ 2016-12-25  4:49 David Gibson
  2016-12-25  4:49 ` [PATCH 2/2] ccanlint: Move ccanlint test options from _info comments to code David Gibson
  0 siblings, 1 reply; 4+ messages in thread
From: David Gibson @ 2016-12-25  4:49 UTC (permalink / raw)
  To: ccan, rusty

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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index a9dfed1..d1e08a3 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)
-- 
2.9.3

_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-12-29  8:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-12-25  4:49 [PATCH 1/2] Makefile: Make module checks depend on info file David Gibson
2016-12-25  4:49 ` [PATCH 2/2] ccanlint: Move ccanlint test options from _info comments to code David Gibson
2016-12-27  3:35   ` Rusty Russell
2016-12-29  8:01     ` David Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).