use $(shell) script to test GNU tar only when building under UNIX (linux, *BSD, etc.)
This commit is contained in:
parent
a0c65b37ec
commit
00caf6b668
@ -53,9 +53,7 @@ endif
|
|||||||
PLATFORMOBJ =
|
PLATFORMOBJ =
|
||||||
|
|
||||||
TAR = tar
|
TAR = tar
|
||||||
TARTRANSFORM = $(shell if $(TAR) --version | grep 'GNU tar' > /dev/null ; then \
|
TARTRANSFORM = --strip=1 --transform 's,^,grafx2/,g'
|
||||||
echo "--strip=1 --transform 's,^,grafx2/,g'" ; else \
|
|
||||||
echo "-s '/\.\./grafx2/'" ; fi )
|
|
||||||
|
|
||||||
# There is no uname under windows, but we can guess we are there with the COMSPEC env.var
|
# There is no uname under windows, but we can guess we are there with the COMSPEC env.var
|
||||||
# Windows specific
|
# Windows specific
|
||||||
@ -309,6 +307,9 @@ endif
|
|||||||
RMDIR = rmdir --ignore-fail-on-non-empty
|
RMDIR = rmdir --ignore-fail-on-non-empty
|
||||||
CP = cp
|
CP = cp
|
||||||
ZIP = zip
|
ZIP = zip
|
||||||
|
TARTRANSFORM = $(shell if $(TAR) --version | grep 'GNU tar' > /dev/null ; then \
|
||||||
|
echo "--strip=1 --transform 's,^,grafx2/,g'" ; else \
|
||||||
|
echo "-s '/\.\./grafx2/'" ; fi )
|
||||||
PLATFORMFILES = ../share/grafx2/gfx2.png
|
PLATFORMFILES = ../share/grafx2/gfx2.png
|
||||||
ifneq ($(ATARICROSS),1)
|
ifneq ($(ATARICROSS),1)
|
||||||
ifeq ($(NOLUA),1)
|
ifeq ($(NOLUA),1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user