diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-07-31 23:55:39 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-07-31 23:55:39 +0000 |
commit | c1d54dc961ded7c80ce833291bf2af2e8d0bcad0 (patch) | |
tree | a905d598bfd9a45522703d2ece26aae52d682c48 | |
parent | f5976682706f2a80d9cdbffda1e881c462cf8bbb (diff) | |
download | upstream-c1d54dc961ded7c80ce833291bf2af2e8d0bcad0.tar.gz upstream-c1d54dc961ded7c80ce833291bf2af2e8d0bcad0.tar.bz2 upstream-c1d54dc961ded7c80ce833291bf2af2e8d0bcad0.zip |
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
-rw-r--r-- | rules.mk | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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/')) |