Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
msys如果我在 posix shell ( / cygwin) 或 windows shell中运行,如何签入 makefile cmd?
msys
cygwin
cmd
以下对我有用:
ifeq ($(shell echo %OS%),%OS%) $(info Running in a POSIX shell) else $(info Running in a Windows cmd shell) endif
您可以替换%OS%为 DOS 环境中定义的任何标准环境变量。
%OS%