1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

make: simplify dependency loading

No need for extra ifdefs around.
This commit is contained in:
Zdenek Kabelac 2021-03-19 16:12:10 +01:00
parent 48d04afaa2
commit e86798203e
2 changed files with 3 additions and 13 deletions

View File

@ -530,11 +530,7 @@ endif
ifeq ("@USE_TRACKING@","yes") ifeq ("@USE_TRACKING@","yes")
ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov \ ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov \
help check check_local check_cluster check_lvmpolld)) help check check_local check_cluster check_lvmpolld))
ifdef SOURCES # Note: no tabs before -include
-include $(SOURCES:.c=.d) $(CXXSOURCES:.cpp=.d) -include $(SOURCES:.c=.d) $(SOURCES2:.c=.d) $(CXXSOURCES:.cpp=.d)
endif
ifdef SOURCES2
-include $(SOURCES2:.c=.d)
endif
endif endif
endif endif

View File

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