Make ccanlint core objects depend on generated-init-tests to fix build error
[ccan] / tools / ccanlint / Makefile
index e7c21d6f4bdfa3366860c3f6201ed0d5a224ce05..16c4bfd2b3324daab2c6462af18341d7528601a8 100644 (file)
@@ -16,6 +16,9 @@ tools/ccanlint/generated-init-tests: $(TEST_CFILES)
 
 $(TEST_OBJS): tools/ccanlint/generated-init-tests
 
+# Otherwise, ccanlint.c et al. may fail to build
+$(CORE_OBJS): tools/ccanlint/generated-init-tests
+
 tools/ccanlint/ccanlint: $(OBJS)
 
 ccanlint-clean: