summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-09-20 12:36:46 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-09-20 12:36:46 (GMT)
commitf162381b1a406c895277b9950559ec5fca3fdd92 (patch)
tree07f172565d40862eb68d9279f2d80ea86dbe8cd2 /Makefile
parent4bf7a58c9e319c3495e1a32ce5a0a260e0ef2ebc (diff)
downloadmxe-f162381b1a406c895277b9950559ec5fca3fdd92.zip
mxe-f162381b1a406c895277b9950559ec5fca3fdd92.tar.gz
mxe-f162381b1a406c895277b9950559ec5fca3fdd92.tar.bz2
improved version recognition, enable the notation of ignored (bad) package versions
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