summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 9f52690..ac18f40 100644
--- a/Makefile
+++ b/Makefile
@@ -203,11 +203,13 @@ clean-pkg:
.PHONY: update
define UPDATE
$(if $(2),
- $(info $(1): $(2))
- $(if $(filter $(2),$($(1)_VERSION)),
- ,
- $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' -i '$(TOP_DIR)/src/$(1).mk'
- $(MAKE) -f '$(MAKEFILE)' 'update-checksum-$(1)'),
+ $(if $(filter $(2),$($(1)_IGNORE)),
+ $(info $(1): $(2) ignored),
+ $(if $(filter $(2),$($(1)_VERSION)),
+ $(info $(1): $(2)),
+ $(info $(1): $(2) NEW)
+ $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' -i '$(TOP_DIR)/src/$(1).mk'
+ $(MAKE) -f '$(MAKEFILE)' 'update-checksum-$(1)')),
$(error Unable to update version number: $(1)))
endef