From d6e2ad38053a9c45c1f62094b63001a195103276 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Mon, 30 Nov 2015 14:50:10 +1100 Subject: Makefile: only call UPDATE if rule exists --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 3e328ef..85f8d52 100644 --- a/Makefile +++ b/Makefile @@ -603,11 +603,12 @@ define UPDATE endef update: - $(foreach PKG,$(PKGS),$(call UPDATE,$(PKG),$(shell $($(PKG)_UPDATE)))) + $(foreach PKG,$(PKGS),\ + $(and $($(PKG)_UPDATE),$(call UPDATE,$(PKG),$(shell $($(PKG)_UPDATE))))) update-package-%: $(if $(call set_is_member,$*,$(PKGS)), \ - $(call UPDATE,$*,$(shell $($*_UPDATE))), \ + $(and $($*_UPDATE),$(call UPDATE,$*,$(shell $($*_UPDATE)))), \ $(error Package $* not found in index.html)) update-checksum-%: -- cgit v0.12