From adf00be99f341f056dbd6325d577541de3771870 Mon Sep 17 00:00:00 2001 From: Volker Grabsch Date: Sat, 31 Jan 2009 09:58:34 +0100 Subject: on "make update" touch only the *.mk files which have a new version --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v0.12