changeset 210:32a6b0a4bf5a

on "make update" touch only the *.mk files which have a new version
author Volker Grabsch <vog@notjusthosting.com>
date Sat, 31 Jan 2009 09:58:34 +0100
parents 234af7f11ee0
children 3e6c933b5c9e
files Makefile
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sat Jan 31 09:28:20 2009 +0100
+++ b/Makefile	Sat Jan 31 09:58:34 2009 +0100
@@ -87,7 +87,9 @@
 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