No need for extra ifdefs around.
ifeq ("@USE_TRACKING@","yes")
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov \
help check check_local check_cluster check_lvmpolld))
- ifdef SOURCES
- -include $(SOURCES:.c=.d) $(CXXSOURCES:.cpp=.d)
- endif
- ifdef SOURCES2
- -include $(SOURCES2:.c=.d)
- endif
+# Note: no tabs before -include
+ -include $(SOURCES:.c=.d) $(SOURCES2:.c=.d) $(CXXSOURCES:.cpp=.d)
endif
endif
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov lcov-reset \
help check check_local check_cluster check_lvmpolld run-unit-test tags))
# Note: no tabs before -include
- ifdef SOURCES
- -include $(SOURCES:.c=.d) $(CXXSOURCES:.cpp=.d)
- endif
- ifdef SOURCES2
- -include $(SOURCES2:.c=.d)
- endif
- DEPENDS = yes
+ -include $(SOURCES:.c=.d) $(SOURCES2:.c=.d) $(CXXSOURCES:.cpp=.d)
endif
endif