Commit 2b7f1fca authored by Rusty Russell's avatar Rusty Russell

Makefile: score nested modules.

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent 07672941
......@@ -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
......
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