我读了OS detecting makefile,但我希望有两个不同的Makefile,一个用于Windows,一个用于Linux,并从主Makefile中获取它们。类似于:
ifeq ($(OS),Windows_NT)
# run the commands in the MakefileWin file
else
# run the commands in the MakefileLinux file
endif
如果没有shell脚本,仅使用make命令,是否有可能?谢谢
为什么不只使用include
?
ifeq ($(OS),Windows_NT)
include Makefilewin
else
include MakefileLinux
endif
?