summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorVolker Grabsch <vog@notjusthosting.com>2009-01-31 08:58:34 (GMT)
committerVolker Grabsch <vog@notjusthosting.com>2009-01-31 08:58:34 (GMT)
commitadf00be99f341f056dbd6325d577541de3771870 (patch)
tree0253ea1c21a6bc96991fdc10e6948399ba564baf /Makefile
parent18ec886148ebc950b266c2b3e28f1b0918da7166 (diff)
downloadmxe-adf00be99f341f056dbd6325d577541de3771870.zip
mxe-adf00be99f341f056dbd6325d577541de3771870.tar.gz
mxe-adf00be99f341f056dbd6325d577541de3771870.tar.bz2
on "make update" touch only the *.mk files which have a new version
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 23cd877..335d9d2 100644
--- a/Makefile
+++ b/Makefile
@@ -87,7 +87,9 @@ clean:
define UPDATE
$(if $(2), \
$(info $(1): $(2)) \
- $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' -i src/$(1).mk, \
+ $(if $(filter $(2),$($(1)_VERSION)), \
+ , \
+ $(SED) 's/^\([^ ]*_VERSION *:=\).*/\1 $(2)/' -i src/$(1).mk), \
$(error Unable to update version number: $(1)))
endef