Skip to content

Commit bc1e6db

Browse files
committed
Merge pull request #1882 from mgreter/cleanup/makefile-windows
Cleanup makefile for windows
2 parents 22d5142 + a958efc commit bc1e6db

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

Makefile

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ CAT ?= $(if $(filter $(OS),Windows_NT),type,cat)
2626
ifneq (,$(findstring /cygdrive/,$(PATH)))
2727
UNAME := Cygwin
2828
else
29-
ifneq (,$(findstring WINDOWS,$(PATH)))
29+
ifneq (,$(findstring Windows_NT,$(OS)))
3030
UNAME := Windows
3131
else
3232
ifneq (,$(findstring mingw32,$(MAKE)))
33-
UNAME := MinGW
33+
UNAME := Windows
3434
else
3535
ifneq (,$(findstring MINGW32,$(shell uname -s)))
36-
UNAME = MinGW
36+
UNAME = Windows
3737
else
3838
UNAME := $(shell uname -s)
3939
endif
@@ -63,7 +63,7 @@ ifneq ($(LIBSASS_VERSION),)
6363
endif
6464

6565
# enable mandatory flag
66-
ifeq (MinGW,$(UNAME))
66+
ifeq (Windows,$(UNAME))
6767
ifneq ($(BUILD),shared)
6868
STATIC_ALL ?= 1
6969
endif
@@ -123,7 +123,7 @@ ifeq ($(UNAME),Darwin)
123123
LDFLAGS += -stdlib=libc++
124124
endif
125125

126-
ifneq (MinGW,$(UNAME))
126+
ifneq (Windows,$(UNAME))
127127
ifneq (FreeBSD,$(UNAME))
128128
LDFLAGS += -ldl
129129
LDLIBS += -ldl
@@ -154,7 +154,7 @@ RUBY_BIN = ruby
154154
LIB_STATIC = $(SASS_LIBSASS_PATH)/lib/libsass.a
155155
LIB_SHARED = $(SASS_LIBSASS_PATH)/lib/libsass.so
156156

157-
ifeq (MinGW,$(UNAME))
157+
ifeq (Windows,$(UNAME))
158158
ifeq (shared,$(BUILD))
159159
CFLAGS += -D ADD_EXPORTS
160160
CXXFLAGS += -D ADD_EXPORTS
@@ -168,9 +168,6 @@ else
168168
endif
169169
endif
170170

171-
ifeq (MinGW,$(UNAME))
172-
SASSC_BIN = $(SASS_SASSC_PATH)/bin/sassc.exe
173-
endif
174171
ifeq (Windows,$(UNAME))
175172
SASSC_BIN = $(SASS_SASSC_PATH)/bin/sassc.exe
176173
endif
@@ -180,7 +177,7 @@ include Makefile.conf
180177
RESOURCES =
181178
STATICLIB = lib/libsass.a
182179
SHAREDLIB = lib/libsass.so
183-
ifeq (MinGW,$(UNAME))
180+
ifeq (Windows,$(UNAME))
184181
RESOURCES += res/resource.rc
185182
SHAREDLIB = lib/libsass.dll
186183
ifeq (shared,$(BUILD))

0 commit comments

Comments
 (0)