]> git.ozlabs.org Git - ccan/blobdiff - Makefile
tal/talloc: new module for backending tal onto talloc.
[ccan] / Makefile
index b885875a4d6b3fcfa73c1c0b839c0f0db9ceee05..9c70f2ba823fddd99ca1864bbdd2346a41fb427c 100644 (file)
--- 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