shell uname -s falling into linux instead of darwin

1.9k Views Asked by At

I was looking at makefile returns error and tried

OS := $(shell uname -s)
ifeq ($(OS),Darwin)
   #set LIB_DIR
   LIB_DIR=darwin64_gcc42/lib
else
   LIB_DIR=linux64_gcc44/lib
endif

but for some reason, it's setting the dir as linux. Any idea why, or how to troubleshoot?

1

There are 1 best solutions below

0
On

I figured it out. The shell script winds up in a build output directory, and I was editing the original version, running the one in the build output dir. thump forehead now