]> sourceware.org Git - lvm2.git/commitdiff
build: avoid rebuild deps for top-level makefiles
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 1 Jul 2018 13:16:18 +0000 (15:16 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 2 Jul 2018 08:21:42 +0000 (10:21 +0200)
device_mapper/Makefile
make.tmpl.in
test/unit/Makefile

index 931431c08270af78dfd53ac3818f1f932e14c92a..0a06a8ba79f50cf46ce8cfc53f2dd399d0e82293 100644 (file)
@@ -30,7 +30,12 @@ DEVICE_MAPPER_DEPENDS=$(addprefix $(top_builddir)/,$(subst .c,.d,$(DEVICE_MAPPER
 DEVICE_MAPPER_OBJECTS=$(addprefix $(top_builddir)/,$(subst .c,.o,$(DEVICE_MAPPER_SOURCE)))
 CLEAN_TARGETS+=$(DEVICE_MAPPER_DEPENDS) $(DEVICE_MAPPER_OBJECTS)
 
--include $(DEVICE_MAPPER_DEPENDS)
+ifeq ("$(USE_TRACKING)","yes")
+ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov \
+ help check check_local check_cluster check_lvmetad check_lvmpolld))
+       -include $(DEVICE_MAPPER_DEPENDS)
+endif
+endif
 
 $(DEVICE_MAPPER_OBJECTS): INCLUDES+=-I$(top_srcdir)/device_mapper/
 
index 38fdc73e2946dae055421b220a00ddae1691c729..dcdc093399a1d9986dae7275413a0da7d30c3de5 100644 (file)
@@ -88,6 +88,7 @@ BLKID_CFLAGS = @BLKID_CFLAGS@
 BLKID_LIBS = @BLKID_LIBS@
 SYSTEMD_LIBS = @SYSTEMD_LIBS@
 VALGRIND_CFLAGS = @VALGRIND_CFLAGS@
+USE_TRACKING = @USE_TRACKING@
 
 # Setup directory variables
 prefix = @prefix@
@@ -577,7 +578,7 @@ else
        ) > $@
 endif
 
-ifeq ("@USE_TRACKING@","yes")
+ifeq ("$(USE_TRACKING)","yes")
 ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov \
  help check check_local check_cluster check_lvmetad check_lvmpolld))
     ifdef SOURCES
index 9155c4763e799185b8575ce0152ae93b254a851e..6fb6401659f4a9d4ac48570e5a30cc9c76b89e32 100644 (file)
@@ -43,4 +43,9 @@ run-unit-test: test/unit/unit-test
        @echo Running unit tests
        LD_LIBRARY_PATH=libdm test/unit/unit-test run
 
--include $(UNIT_DEPENDS)
+ifeq ("$(USE_TRACKING)","yes")
+ifeq (,$(findstring $(MAKECMDGOALS),cscope.out cflow clean distclean lcov \
+ help check check_local check_cluster check_lvmetad check_lvmpolld))
+       -include $(UNIT_DEPENDS)
+endif
+endif
This page took 0.041787 seconds and 5 git commands to generate.