File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -40,18 +40,18 @@ SHARE_DIRS = R dictionaries encodings licenses make Rd texmf zoneinfo
4040all : $(RPREFIX ) -win.exe
4141msi : $(RPREFIX ) -$(SUFF ) .msi
4242
43- RBUILD := $(if $(findstring Aarch64,\
44- $(subst ARM64,Aarch64,$(shell file "$(R_HOME ) /bin/R.exe") ) ) ,\
45- aarch64,x86_64)
43+ RBUILD := $(strip $( if $(findstring Aarch64,\
44+ $(subst ARM64,Aarch64,$(shell file "$(R_HOME ) /bin/R.exe") ) ) ,\
45+ aarch64,x86_64) )
4646
4747ifeq ($(CROSS_BUILD ) ,)
4848 RTARGET := $(RBUILD )
4949 R_ARCH_TARGET := $(R_ARCH )
5050else
5151 R_HOME_CROSS = $(CROSS_BUILD )
52- RTARGET := $(if $(findstring Aarch64,\
53- $(subst ARM64,Aarch64,$(shell file "$(R_HOME_CROSS ) /bin/R.exe") ) ) ,\
54- aarch64,x86_64)
52+ RTARGET := $(strip $( if $(findstring Aarch64,\
53+ $(subst ARM64,Aarch64,$(shell file "$(R_HOME_CROSS ) /bin/R.exe") ) ) ,\
54+ aarch64,x86_64) )
5555 R_ARCH_TARGET := $(shell $(FIND ) $(R_HOME_CROSS ) /bin -name $R.dll | $(SED ) -e 's!.* /bin\(.* \) /R.dll!\1!g')
5656endif
5757
You can’t perform that action at this time.
0 commit comments