summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2015-11-30 03:50:10 (GMT)
committerTony Theodore <tonyt@logyst.com>2015-11-30 03:50:10 (GMT)
commitd6e2ad38053a9c45c1f62094b63001a195103276 (patch)
treebf46900e708f0a9e566619aea59c03d18256735e /Makefile
parent42ee8895a958527c6f2c67a04bb2491646b56929 (diff)
downloadmxe-d6e2ad38053a9c45c1f62094b63001a195103276.zip
mxe-d6e2ad38053a9c45c1f62094b63001a195103276.tar.gz
mxe-d6e2ad38053a9c45c1f62094b63001a195103276.tar.bz2
Makefile: only call UPDATE if rule exists
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files 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-%: