What is a GNU-Make test for whether a system is Unix or Windows that works on both Unix and Windows?
For example, if the shell command foo always equals bizz on unix and buzz on windows, I could get this effect with the following in my makefile:
IS_UNIX := $(shell foo)
ifeq "$(IS_UNIX)" "bizz"
BUILD_ARCH := UNIX
else
BULID_ARCH := WINNT
endif
What command can act as foo?
This works for me (
foo==ver):