diff options
author | Michael Tokarev | 2014-06-22 08:55:23 +0200 |
---|---|---|
committer | Michael Tokarev | 2014-06-24 18:01:24 +0200 |
commit | 0d65942611263a37f79bc0522bf77bedbdf9ed20 (patch) | |
tree | f5fb489f3bff8d9e0305e2bc34d1b6333cf79ae5 /Makefile | |
parent | tcg: mark tcg_out* and tcg_patch* with attribute 'unused' (diff) | |
download | qemu-0d65942611263a37f79bc0522bf77bedbdf9ed20.tar.gz qemu-0d65942611263a37f79bc0522bf77bedbdf9ed20.tar.xz qemu-0d65942611263a37f79bc0522bf77bedbdf9ed20.zip |
build-sys: introduce install-prog macro to install&strip binaries and use it
Use common rule (macro) to install and strip binaries, and use
it in all places where we install binaries, instead of fixing
bugs like 1319493 in every place.
(This fixes https://bugs.launchpad.net/bugs/1319493)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -385,12 +385,8 @@ install-sysconfig: install-datadir install-confdir install: all $(if $(BUILD_DOCS),install-doc) install-sysconfig \ install-datadir install-localstatedir - $(INSTALL_DIR) "$(DESTDIR)$(bindir)" ifneq ($(TOOLS),) - $(INSTALL_PROG) $(TOOLS) "$(DESTDIR)$(bindir)" -ifneq ($(STRIP),) - $(STRIP) $(TOOLS:%="$(DESTDIR)$(bindir)/%") -endif + $(call install-prog,$(TOOLS),$(DESTDIR)$(bindir)) endif ifneq ($(CONFIG_MODULES),) $(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)" @@ -401,11 +397,7 @@ ifneq ($(CONFIG_MODULES),) done endif ifneq ($(HELPERS-y),) - $(INSTALL_DIR) "$(DESTDIR)$(libexecdir)" - $(INSTALL_PROG) $(HELPERS-y) "$(DESTDIR)$(libexecdir)" -ifneq ($(STRIP),) - $(STRIP) $(HELPERS-y:%="$(DESTDIR)$(libexecdir)/%") -endif + $(call install-prog,$(HELPERS-y),$(DESTDIR)$(libexecdir)) endif ifneq ($(BLOBS),) set -e; for x in $(BLOBS); do \ |