Re: ifneq problem

2021-03-28 Thread David
On Mon, 22 Mar 2021 at 21:33, Richard Forst wrote: > I have a Makefile used to check whether svn command existing or not. The > content is below > > all: > $(eval svnbin=$(shell basename $(shell which svn))) > $(info X$(svnbin)Y) > $(echo X$(svnbin)Y) > ifneq ($(strip $(s

Re: ifneq problem

2021-03-22 Thread deloptes
Richard Forst wrote: > all: > $(eval svnbin=$(shell basename $(shell which svn))) > $(info X$(svnbin)Y) > $(echo X$(svnbin)Y) > ifneq ($(strip $(svnbin)),svn) > @echo "$(svnbin)=/=svn" > endif all: $(eval svnbin=$(basename $(shell which svn))) @echo $(svnbin) ifeq ("$(svnbin)","sv

Re: ifneq problem

2021-03-22 Thread The Wanderer
On 2021-03-22 at 06:33, Richard Forst wrote: > I have a Makefile used to check whether svn command existing or not. > The content is below I'm not remotely a make expert (not even really familiar with make, except to read it), but a couple of questions do occur to me. (I also look at this and th

ifneq problem

2021-03-22 Thread Richard Forst
I have a Makefile used to check whether svn command existing or not. The content is below all:     $(eval svnbin=$(shell basename $(shell which svn)))     $(info X$(svnbin)Y)     $(echo X$(svnbin)Y) ifneq ($(strip $(svnbin)),svn)     @echo "$(svnbin)=/=svn" endif However, `make`