Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows-Friendly Makefile #119

Open
evanperrygrove-sibelinc opened this issue Jan 31, 2023 · 0 comments
Open

Windows-Friendly Makefile #119

evanperrygrove-sibelinc opened this issue Jan 31, 2023 · 0 comments

Comments

@evanperrygrove-sibelinc
Copy link

evanperrygrove-sibelinc commented Jan 31, 2023

The Makefile created by rdm init could be Windows-friendly with minimal changes. I don't have the time to put together a proper PR right now. However, I can provide the key piece that someone would need to add:

ifeq ($(OS),Windows_NT)
MKDIR_P := powershell New-Item -ItemType Directory -Force -ea 0
RM_RF := powershell Remove-Item -Recurse -Force -ea 0
else
MKDIR_P := mkdir -p
RM_RF := rm -rf
endif

(edited to use PowerShell commands, since PowerShell handles forward slashes correctly)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant