Skip to content
Snippets Groups Projects
Commit d7197997 authored by Patrick Baudin's avatar Patrick Baudin
Browse files

[Makefile] conditional definition for MacOS

parent aa30d328
No related branches found
No related tags found
No related merge requests found
...@@ -147,13 +147,15 @@ eval last=\$${$$\#}; \ ...@@ -147,13 +147,15 @@ eval last=\$${$$\#}; \
mv $$new_temp $$last' sed_inplace mv $$new_temp $$last' sed_inplace
SED = LC_ALL=C sed SED = LC_ALL=C sed
RM = rm -f RM = rm -f
ifeq ($(shell uname -s 2> /dev/null),Darwin) TOUCH = touch
GIT = git
ifeq ($(PLATFORM),MacOS)
TAR = gtar TAR = gtar
else else
# Unix, Cygwin
TAR = tar TAR = tar
endif endif
TOUCH = touch
GIT = git
################## ##################
# Make commands # # Make commands #
......
...@@ -66,7 +66,13 @@ MV ?= mv ...@@ -66,7 +66,13 @@ MV ?= mv
RM ?= rm -f RM ?= rm -f
RMDIR ?= rm -rf RMDIR ?= rm -rf
TOUCH ?= touch TOUCH ?= touch
ifeq ($(PLATFORM),MacOS)
XARGS ?= xargs
else
# Unix, Cygwin
XARGS ?= xargs --no-run-if-empty XARGS ?= xargs --no-run-if-empty
endif
############ ############
......
...@@ -35,11 +35,17 @@ PTEST_DIRS?=$(PURGED_PTEST_DIRS) ...@@ -35,11 +35,17 @@ PTEST_DIRS?=$(PURGED_PTEST_DIRS)
############ ############
# Default values necessary for make -f <this-makefile> # Default values necessary for make -f <this-makefile>
XARGS ?= xargs --no-run-if-empty
GREP ?= grep GREP ?= grep
RM ?= rm -f RM ?= rm -f
RMDIR ?= rm -rf RMDIR ?= rm -rf
ifeq ($(PLATFORM),MacOS)
XARGS ?= xargs
else
# Unix, Cygwin
XARGS ?= xargs --no-run-if-empty
endif
########################################################################## ##########################################################################
# Defines the related dune targets # Defines the related dune targets
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment