Use same Windows detection method as starter-kit

This supports POSIX environments under Windows as well
This commit is contained in:
Eldred Habert
2022-03-29 19:11:32 +02:00
committed by GitHub
parent 4299834bbc
commit b5343affca

View File

@@ -9,13 +9,13 @@
## Directory constants ## Directory constants
# These directories can be placed elsewhere if you want; directories whose placement # These directories can be placed elsewhere if you want; directories whose placement
# must be fixed lest this Makefile breaks are hardcoded throughout this Makefile # must be fixed, lest this Makefile breaks, are hardcoded throughout this Makefile
BINDIR := bin BINDIR := bin
OBJDIR := obj OBJDIR := obj
DEPDIR := dep DEPDIR := dep
# Program constants # Program constants
ifneq ($(OS),Windows_NT) ifneq ($(strip $(shell which rm)),)
# POSIX OSes # POSIX OSes
RM_RF := rm -rf RM_RF := rm -rf
MKDIR_P := mkdir -p MKDIR_P := mkdir -p