From: Felix Fietkau Date: Thu, 31 Jul 2008 23:55:39 +0000 (+0000) Subject: add helper macro for stripping the last part of a version number X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=b3c88cc9e48110de6dd39e6ca77aeeaa65bdc0f9;ds=inline add helper macro for stripping the last part of a version number SVN-Revision: 12054 --- diff --git a/rules.mk b/rules.mk index 5b411183c6..5a54c536d9 100644 --- a/rules.mk +++ b/rules.mk @@ -27,6 +27,7 @@ empty:= space:= $(empty) $(empty) merge=$(subst $(space),,$(1)) confvar=$(call merge,$(foreach v,$(1),$(if $($(v)),y,n))) +strip_last=$(patsubst %.$(lastword $(subst .,$(space),$(1))),%,$(1)) _SINGLE=MAKEFLAGS=$(space) ARCH:=$(call qstrip,$(shell echo $(CONFIG_ARCH) | sed -e 's/i[3-9]86/i386/'))