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?
I don't think so. But then, you can always use:
INSTALL_STRIP_PROGRAM=`cd $$(top_srcdir) && pwd`/$(install_sh)
$(MAKE) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" install
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me