Created
May 14, 2021 16:55
-
-
Save jennings/89ea13dcefed803831b617a968e48016 to your computer and use it in GitHub Desktop.
Makefile syntax to run different commands on Windows. Works with GNU Make, not NMake
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
target: | |
ifeq ($(OS),Windows_NT) | |
powershell -NoProfile -Command "Get-Date" | |
else | |
date | |
endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment