> > One more time, for the sake of the braindead (such as me): > > > > How about: > > > > ifeq ($(LINK_TO_VI),y) > > LINKIT="ln -s -f" > > else > > LINKIT=":" > > endif > > > > ... > > > > -$(LINKIT) $(BINDIR)/$(VIMTARGET) $(DESTDIR)/usr/bin/vim > > > > instead? > > What make understands "ifeq"? This looks restricted to some versions of > make.
Correct, this is gnu make extension afaik. It can be constructed like
this however:
LINK_TO_VI = YES
LINKIT_YES = ln -s -f
LINKIT_NO = :
LINKIT = $(LINKIT_$(LINK_TO_VI))
Other possibility would be to solve this at automake/autoconf level,
adding new parameter to 'configure' script.
> How can LINKIT only be ":"?
: is shell builtin, try 'type :'. It just expands arguments and returns
true. (so that ': $(touch a)' creates file a). To be sure I checked it
for sh, bash and ksh on Solaris.
--
Vlad
pgpp2xRk7vf0P.pgp
Description: PGP signature
