diff options
author | Alexandre Duret-Lutz <adl@gnu.org> | 2003-10-21 13:05:55 +0000 |
---|---|---|
committer | Alexandre Duret-Lutz <adl@gnu.org> | 2003-10-21 13:05:55 +0000 |
commit | 2f048a8c27b984ea1a3bbb4ac467b4800b867acd (patch) | |
tree | 171ac7def301710a0d384022b7a428959e5a46c4 /lib/am/install.am | |
parent | 8afb58eb6c37874dbf1f34671e9a8b37ee066131 (diff) | |
download | automake-2f048a8c27b984ea1a3bbb4ac467b4800b867acd.tar.gz |
* lib/am/install.am (install-strip): Override install_sh_PROGRAM
too.
Report from Elmar Hoffmann.
Diffstat (limited to 'lib/am/install.am')
-rw-r--r-- | lib/am/install.am | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/am/install.am b/lib/am/install.am index ba32a7206..89ee94ed2 100644 --- a/lib/am/install.am +++ b/lib/am/install.am @@ -71,9 +71,16 @@ install-am: all-am ## directory. .PHONY: install-strip install-strip: +## Beware that they are two variables used to install programs: +## INSTALL_PROGRAM is used for ordinary *_PROGRAMS +## install_sh_PROGRAM us used for nobase_*_PROGRAMS (because install-sh +## creates directories) +## It's OK to override both with INSTALL_STRIP_PROGRAM, because +## INSTALL_STRIP_PROGRAM uses install-sh (see m4/strip.m4 for a rational). +## ## Use double quotes here because we might need to interpolate some ## backquotes at runtime. $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - INSTALL_STRIP_FLAG=-s \ + install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ `test -z '$(STRIP)' || \ echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install |