This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: make install-strip in cross-compilation environments


>>> "Alexandre" == Alexandre Oliva <oliva@lsd.ic.unicamp.br> writes:

 Alexandre> On Jan 23, 2001, Alexandre Duret-Lutz <duret_g@lrde.epita.fr> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]