>>> "Alexandre" == Alexandre Oliva <[EMAIL PROTECTED]> writes:
Alexandre> On Jan 23, 2001, Alexandre Duret-Lutz <[EMAIL PROTECTED]> wrote:
>> INSTALL_STRIP_PROGRAM=$$(topsrc_dir)/$(install_sh) -s
>> and then
>> install-strip:
>> $(MAKE) INSTALL_PROGRAM='$(INSTALL_STRIP_PROGRAM)' install
>> So that $(topsrc_dir) gets evaluated in the sub-make. From
>> the simulation below, it appears to work fine. The question is,
>> is it portable? I mean, will any make perform variable substitution
>> in command line arguments?
Alexandre> I don't think so. But then, you can always use:
Alexandre> INSTALL_STRIP_PROGRAM=`cd $$(top_srcdir) && pwd`/$(install_sh)
Alexandre> $(MAKE) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" install
That wouldn't work for the same reason I said what I suggested
above cannot work: $(install_sh) is not always relative to $(top_srcdir).
IMHO ${install_sh} needs to be expansed at configure time, when
it is defined.
--
Alexandre Duret-Lutz