diff options
author | Paolo \'Blaisorblade\' Giarrusso <blaisorblade_spam@yahoo.it> | 2004-11-06 02:07:44 +0100 |
---|---|---|
committer | Sam Ravnborg <sam@mars.ravnborg.org> | 2004-11-06 02:07:44 +0100 |
commit | 281a1814f056919f4c07863f1eccdd7dc6ec7a15 (patch) | |
tree | e4c43d8003ec7f4884a145e5657342a3819395ca /Makefile | |
parent | 5e76ff2bf65d1ac6b4ca152dd02fc560a71bd07c (diff) | |
download | history-281a1814f056919f4c07863f1eccdd7dc6ec7a15.tar.gz |
Kbuild: avoid backup localversion files
Avoid including as localversion-files the *~ files, i.e. backup files. If I
have localversion-a and localversion-a~, I don't want both to be used. Nor I
want to use localversion*~ anyway.
Don't code that as $(wildcard localversion*[^~]) as that would exclude
"localversion" from the wildcard expansion result, because it requires at
least one character after localversion to exist in the name file. I.e.,
Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade_spam@yahoo.it>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile index fe84b2693169e8..a2a752575cc164 100644 --- a/Makefile +++ b/Makefile @@ -156,7 +156,7 @@ localversion-files := $(wildcard $(objtree)/localversion* $(srctree)/localversio endif LOCALVERSION = $(subst $(space),, \ - $(shell cat /dev/null $(localversion-files)) \ + $(shell cat /dev/null $(localversion-files:%~=)) \ $(patsubst "%",%,$(CONFIG_LOCALVERSION))) KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)$(LOCALVERSION) |