summaryrefslogtreecommitdiffstats
path: root/Makefile.target
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2014-06-22 10:55:23 +0400
committerMichael Tokarev <mjt@tls.msk.ru>2014-06-24 20:01:24 +0400
commit0d65942611263a37f79bc0522bf77bedbdf9ed20 (patch)
treef5fb489f3bff8d9e0305e2bc34d1b6333cf79ae5 /Makefile.target
parent4196dca63b881d85fc3c1e41da0ef22e0bc18d37 (diff)
downloadhqemu-0d65942611263a37f79bc0522bf77bedbdf9ed20.zip
hqemu-0d65942611263a37f79bc0522bf77bedbdf9ed20.tar.gz
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.target')
-rw-r--r--Makefile.target5
1 files changed, 1 insertions, 4 deletions
diff --git a/Makefile.target b/Makefile.target
index fc5827c..6089d29 100644
--- a/Makefile.target
+++ b/Makefile.target
@@ -190,10 +190,7 @@ endif
install: all
ifneq ($(PROGS),)
- $(INSTALL_PROG) $(PROGS) "$(DESTDIR)$(bindir)"
-ifneq ($(STRIP),)
- $(STRIP) $(PROGS:%="$(DESTDIR)$(bindir)/%")
-endif
+ $(call install-prog,$(PROGS),$(DESTDIR)$(bindir))
endif
ifdef CONFIG_TRACE_SYSTEMTAP
$(INSTALL_DIR) "$(DESTDIR)$(qemu_datadir)/../systemtap/tapset"
OpenPOWER on IntegriCloud