Commit 6013ffa66ef5d856b2c4c72c44b1a63a7ccc2b57

Andreas Ericsson 2008-11-22T15:33:15

Add $(CONFIG_H) as a build-dependency for sparse Signed-off-by: Andreas Ericsson <ae@op5.se> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/Makefile b/Makefile
index e8919be..e7bed37 100644
--- a/Makefile
+++ b/Makefile
@@ -41,7 +41,7 @@ apidocs:
 
 test: $(TEST_RUN)
 
-sparse:
+sparse: $(CONFIG_H)
 	@for i in $(SRC_C); do sparse $$i -DSPARSE_IS_RUNNING $(SPARSE_FLAGS) $(BASIC_CFLAGS) $(CFLAGS); done
 
 install-headers: $(PUBLIC_HEADERS)