X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=Makefile;h=409c4b4aed627494cb151ddf718d3990ca744e1d;hp=333ea449167b3989f594afeac313447812a83b76;hb=e22e4bd1bc10ec2dbae8322cb7f63e0a45db1404;hpb=9c1974f62a43e0dd5dac8ad4f9b541a12c110a0a;ds=sidebyside diff --git a/Makefile b/Makefile index 333ea449..409c4b4a 100644 --- a/Makefile +++ b/Makefile @@ -10,15 +10,17 @@ # Especially tools/ccanlint/ccanlint and tools/namespacize. # distclean: destroy everything back to pristine state -ALL=$(patsubst ccan/%/test, %, $(wildcard ccan/*/test)) -ALL_DIRS=$(patsubst %, ccan/%, $(ALL)) +# Anything with an _info.c file is a module. +ALL=$(patsubst ccan/%/_info.c, %, $(wildcard ccan/*/_info.c)) ALL_DEPENDS=$(patsubst %, ccan/%/.depends, $(ALL)) +# Not all modules have tests. +ALL_TESTS=$(patsubst ccan/%/test/, %, $(wildcard ccan/*/test/)) default: libccan.a include Makefile-ccan -check: $(ALL_DIRS:ccan/%=check-%) +check: $(ALL_TESTS:%=check-%) distclean: clean rm -f $(ALL_DEPENDS)