From 2b7f1fca3e33d017dd86b2de12547f9720fb5c3d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 3 Dec 2012 18:24:41 +1030 Subject: [PATCH] Makefile: score nested modules. Signed-off-by: Rusty Russell --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2