From: Rusty Russell Date: Mon, 3 Dec 2012 07:54:41 +0000 (+1030) Subject: Makefile: score nested modules. X-Git-Url: http://git.ozlabs.org/?p=ccan;a=commitdiff_plain;h=2b7f1fca3e33d017dd86b2de12547f9720fb5c3d Makefile: score nested modules. Signed-off-by: Rusty Russell --- diff --git a/Makefile b/Makefile index b885875a..9c70f2ba 100644 --- a/Makefile +++ b/Makefile @@ -28,14 +28,14 @@ distclean: clean scores: $(SCOREDIR)/SUMMARY -$(SCOREDIR)/SUMMARY: $(MODS:%=$(SCOREDIR)/score-%) +$(SCOREDIR)/SUMMARY: $(MODS:%=$(SCOREDIR)/%.score) git describe --always > $@ uname -a >> $@ $(CC) -v >> $@ cat $^ | grep 'Total score:' >> $@ -$(SCOREDIR)/score-%: ccan/%/_info tools/ccanlint/ccanlint $(OBJFILES) - mkdir -p $(SCOREDIR) +$(SCOREDIR)/%.score: ccan/%/_info tools/ccanlint/ccanlint $(OBJFILES) + mkdir -p `dirname $@` tools/ccanlint/ccanlint -v -s ccan/$* > $@ || true $(ALL_DEPENDS): %/.depends: %/_info tools/ccan_depends