diff options
author | David Boreham <dboreham@redhat.com> | 2005-01-26 22:10:48 +0000 |
---|---|---|
committer | David Boreham <dboreham@redhat.com> | 2005-01-26 22:10:48 +0000 |
commit | 508e0d08e1a93371e7ae92e70ddd60aaa4d7c782 (patch) | |
tree | f3ae294b34a812b9aeb35aa5c60b14cbfca5939a /nsconfig.mk | |
parent | b65176542a299e201c81cf8cf41251eb3637d9a1 (diff) | |
download | ds-508e0d08e1a93371e7ae92e70ddd60aaa4d7c782.tar.gz ds-508e0d08e1a93371e7ae92e70ddd60aaa4d7c782.tar.xz ds-508e0d08e1a93371e7ae92e70ddd60aaa4d7c782.zip |
Makefile changes to allow building on Linux machines where uname reports four-part version
Diffstat (limited to 'nsconfig.mk')
-rw-r--r-- | nsconfig.mk | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nsconfig.mk b/nsconfig.mk index c4ab985d..145fd96b 100644 --- a/nsconfig.mk +++ b/nsconfig.mk @@ -179,6 +179,11 @@ ifeq ($(NSOS_ARCH),Linux) ifeq (,$(filter-out Linux FreeBSD,$(NSOS_ARCH))) NSOS_RELEASE := $(shell echo $(NSOS_RELEASE) | sed 's/-.*//') endif +NSOS_RELEASE_TEMP := $(subst ., ,$(NSOS_RELEASE)) +NSOS_RELEASE_COUNT := $(words $(NSOS_RELEASE_TEMP)) +ifeq ($(NSOS_RELEASE_COUNT), 4) + NSOS_RELEASE := $(basename $(NSOS_RELEASE)) +endif NSOS_RELEASE := $(basename $(NSOS_RELEASE)) NSOS_ARCH := Linux PRETTY_ARCH := Linux |