From b5343affca1d7c57df286de83ac55b3d19b9996d Mon Sep 17 00:00:00 2001 From: Eldred Habert Date: Tue, 29 Mar 2022 19:11:32 +0200 Subject: [PATCH] Use same Windows detection method as starter-kit This supports POSIX environments under Windows as well --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 719bc24..a3ef25e 100644 --- a/Makefile +++ b/Makefile @@ -9,13 +9,13 @@ ## Directory constants # 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 OBJDIR := obj DEPDIR := dep # Program constants -ifneq ($(OS),Windows_NT) +ifneq ($(strip $(shell which rm)),) # POSIX OSes RM_RF := rm -rf MKDIR_P := mkdir -p