[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
install-strip target does not work when using nobase_ prefix
From: |
Elmar Hoffmann |
Subject: |
install-strip target does not work when using nobase_ prefix |
Date: |
Wed, 8 Oct 2003 19:43:18 +0200 |
User-agent: |
Mutt/1.5.3i |
Hi,
with automake 1.7.7 the lines
?BASE?%DIR%PROGRAMS_INSTALL = $(INSTALL_PROGRAM)
?!BASE?%DIR%PROGRAMS_INSTALL = $(install_sh_PROGRAM)
in progs.am cause automake to declare
binPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
in the default case, but
nobase_binPROGRAMS_INSTALL = $(install_sh_PROGRAM)
when one uses the nobase_ prefix in Makefile.am as described in the
chapter "7. An Alternative Approach to Subdirectories" of the automake
manual.
This causes the install-strip target to not strip executables because
it only redefines INSTALL_PROGRAM but not install_sh_PROGRAM:
install-strip:
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
INSTALL_STRIP_FLAG=-s \
`test -z '$(STRIP)' || \
echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
install_sh_PROGRAM remains defined to the default which does not strip
the executables.
elmar
--
.'"`. /"\
| :' : Elmar Hoffmann <address@hidden> ASCII Ribbon Campaign \ /
`. `' PGP key available via pgp.net against HTML email X
`- & vCards / \
- install-strip target does not work when using nobase_ prefix,
Elmar Hoffmann <=