GNUmakefile: fix deps directory
authorLuca Rood <dev@lucarood.com>
Sat, 9 Feb 2019 05:58:52 +0000 (16:58 +1100)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 9 Feb 2019 06:00:57 +0000 (17:00 +1100)
`uname -p` is unknown on some distros, use posix standard `uname -m`.

GNUmakefile

index 2118322..c8e7e5a 100644 (file)
@@ -28,7 +28,7 @@
 # System Vars
 OS:=$(shell uname -s)
 OS_NCASE:=$(shell uname -s | tr '[A-Z]' '[a-z]')
-# CPU:=$(shell uname -m)  # UNUSED
+CPU:=$(shell uname -m)
 
 
 # Source and Build DIR's
@@ -55,7 +55,7 @@ ifndef DEPS_INSTALL_DIR
 
        ifneq ($(OS_NCASE),darwin)
                # Add processor type to directory name
-               DEPS_INSTALL_DIR:=$(DEPS_INSTALL_DIR)_$(shell uname -p)
+               DEPS_INSTALL_DIR:=$(DEPS_INSTALL_DIR)_$(CPU)
        endif
 endif