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 ...@@ -28,14 +28,14 @@ distclean: clean
scores: $(SCOREDIR)/SUMMARY scores: $(SCOREDIR)/SUMMARY
$(SCOREDIR)/SUMMARY: $(MODS:%=$(SCOREDIR)/score-%) $(SCOREDIR)/SUMMARY: $(MODS:%=$(SCOREDIR)/%.score)
git describe --always > $@ git describe --always > $@
uname -a >> $@ uname -a >> $@
$(CC) -v >> $@ $(CC) -v >> $@
cat $^ | grep 'Total score:' >> $@ cat $^ | grep 'Total score:' >> $@
$(SCOREDIR)/score-%: ccan/%/_info tools/ccanlint/ccanlint $(OBJFILES) $(SCOREDIR)/%.score: ccan/%/_info tools/ccanlint/ccanlint $(OBJFILES)
mkdir -p $(SCOREDIR) mkdir -p `dirname $@`
tools/ccanlint/ccanlint -v -s ccan/$* > $@ || true tools/ccanlint/ccanlint -v -s ccan/$* > $@ || true
$(ALL_DEPENDS): %/.depends: %/_info tools/ccan_depends $(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