]> sourceware.org Git - lvm2.git/commitdiff
make: simplify dependency loading
authorZdenek Kabelac <zkabelac@redhat.com>
Fri, 19 Mar 2021 15:12:10 +0000 (16:12 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Fri, 19 Mar 2021 22:21:18 +0000 (23:21 +0100)
No need for extra ifdefs around.

libdm/make.tmpl.in
make.tmpl.in

index 083fba9c30a7da06eb9411a081d6921280feff07..549ef79d9091cd3103aa871c1ada2383bf400d92 100644 (file)
@@ -530,11 +530,7 @@ endif
 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
index 6f3f8191591768e99fe3803a0a105ad914ed92e8..75bb4f243dd4af2a1b263a79ccacea3b5e65c7bb 100644 (file)
@@ -570,12 +570,6 @@ ifeq ("$(USE_TRACKING)","yes")
 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
This page took 0.097863 seconds and 5 git commands to generate.