Use same Windows detection method as starter-kit
This supports POSIX environments under Windows as well
This commit is contained in:
4
Makefile
4
Makefile
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user