From df27ff981b784b17d4b15b3b972d5629cbb1cacd Mon Sep 17 00:00:00 2001 From: nbd Date: Thu, 31 Jul 2008 23:55:39 +0000 Subject: [PATCH] add helper macro for stripping the last part of a version number git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12054 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- rules.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/rules.mk b/rules.mk index 5b411183c..5a54c536d 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/')) -- 2.20.1