summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorTony Kelman <tony@kelman.net>2016-08-09 20:23:52 -0700
committerJoey Hess <joeyh@joeyh.name>2016-08-12 19:15:17 -0400
commit2d427c09cff6e7666e07c301c4b46c6206362a36 (patch)
tree5e2e4a6a3a32e2f9662ef249130a5b93669e0189 /Makefile
parente725f4d1607312a8ed3a5690e2926c26d5c48a61 (diff)
downloadmoreutils-2d427c09cff6e7666e07c301c4b46c6206362a36.tar.gz
Modify Cygwin check to use findstring instead of uname -o
Since Darwin's uname complains about 'illegal option -- o'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 81544ac..2241fd7 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@ CFLAGS?=-O2 -g -Wall
INSTALL_BIN?=install -s
PREFIX?=/usr
-ifeq ($(shell uname -o),Cygwin)
+ifneq (,$(findstring CYGWIN,$(shell uname)))
DOCBOOKXSL?=/usr/share/sgml/docbook/xsl-stylesheets
else
DOCBOOKXSL?=/usr/share/xml/docbook/stylesheet/docbook-xsl