Skip to content

Commit db9cb43

Browse files
committed
Try ifeq(${OS}, Windows_NT)
1 parent 880167c commit db9cb43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Makefile

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ debug : LDLIBS+=-lasan
1616
debug : all
1717

1818
flex := flex
19-
ifeq ($(shell uname), Windows)
19+
ifeq (${OS},Windows_NT)
2020
flex := win_flex
2121
endif
2222

2323
# Rule to automatically run flex to create .c files from .lex.
2424
.SUFFIXES: .lex
2525
.lex.c:
26-
echo "Output of uname is >"$(shell uname)"<"
2726
$(flex) -o $@ $<
2827

2928
# Utility targets are "PHONY" so they'll run even if a file exists

0 commit comments

Comments
 (0)