There was a request to change the file that starts on Windows and OS X, so I tried to determine the OS with Makefile. By the way, ʻuname` does not work on Windows, so this time I am using ** platform ** of ** Python **.
OSPLATFORM = $(shell python -c 'import platform; print platform.system()')
Reference 15.15. platform — Refer to the unique information of the running platform http://docs.python.jp/2.7/library/platform.html
kickoff:
ifeq ($(OSPLATFORM),Windows)
$(KICKOFF_BAT)
else ifeq ($(OSPLATFORM), Darwin)
$(KICKOFF_SH)
endif
Use it like this.
Recommended Posts