Some libs' Makefile aren't loading the dependencies files *.d2.
We can load them from "libs.mk" as none of the Makefile here are
changing $(DEPS) or $(DEPS_INCLUDE) so it is fine to move the
"include" to "libs.mk".
As a little improvement, don't load the dependencies files (and thus
avoid regenerating the *.d2 files) during `make clean`.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
master commit:
e62cc29f9b6c42b67182a1362e2ea18bad75b5ff
master date: 2022-02-08 11:15:53 +0000
$(LIB_OBJS) $(PIC_OBJS): _paths.h
--include $(DEPS_INCLUDE)
-
clean: cleanlocal
.PHONY: cleanlocal
xc_private.h: _paths.h
--include $(DEPS_INCLUDE)
-
.PHONY: cleanlocal
cleanlocal:
rm -f libxenguest.map
.PHONY: FORCE
FORCE:
+
+ifeq ($(filter clean distclean,$(MAKECMDGOALS)),)
+-include $(DEPS_INCLUDE)
+endif
$(RM) -f libxenlight.map
$(RM) -f $(AUTOSRCS) $(AUTOINCS)
$(MAKE) -C $(ACPI_PATH) ACPI_BUILD_DIR=$(CURDIR) clean
-
--include $(DEPS_INCLUDE)
rm -f $(BINDINGS) $(BINDINGSRC) $(DEPS_RM) _paths.h
rm -f libxenstat.map
--include $(DEPS_INCLUDE)
-
genpath-target = $(call buildmakevars2header,_paths.h)
$(eval $(genpath-target))
PKG_CONFIG_REMOVE += -ldl
endif
--include $(DEPS_INCLUDE)
-
.PHONY: install
install: install-headers
genpath-target = $(call buildmakevars2header,_paths.h)
$(eval $(genpath-target))
--include $(DEPS_INCLUDE)
-
clean: cleanlocal
.PHONY: cleanlocal
NO_HEADERS_CHK := y
include $(XEN_ROOT)/tools/libs/libs.mk
--include $(DEPS_INCLUDE)
clean: cleanlocal