Fix EXCLUDE logic for makefiles, add fastcheck
[ccan] / Makefile-ccan
index e188e8a44569788ae951bbf977f9b863319fb261..59d540b4a0d6b2a5d80ad7962049d54cb6774636 100644 (file)
@@ -12,7 +12,7 @@ DEPGEN=-MD
 -include ccan/*/*.d
 
 # Every directory with .c files is included.
-DIRS=$(filter-out $(EXCLUDE), $(patsubst %/, %, $(sort $(dir $(wildcard ccan/*/*.c)))))
+DIRS=$(filter-out $(foreach d,$(EXCLUDE),ccan/$d), $(patsubst %/, %, $(sort $(dir $(wildcard ccan/*/*.c)))))
 
 # Generate everyone's separate Makefiles.
 -include $(foreach dir, $(DIRS), $(dir)-Makefile)