Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 5c8c3b04d73304679340f893636e87691992053b Mon Sep 17 00:00:00 2001 |
| 2 | From: Ross Burton <ross@burtonini.com> |
| 3 | Date: Mon, 23 Jul 2018 14:21:03 +0100 |
| 4 | Subject: [PATCH] Add install |
| 5 | |
| 6 | Add a simple install rule so that we always install the binaries that were built. |
| 7 | |
| 8 | Upstream-Status: Inappropriate |
| 9 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
| 10 | |
| 11 | --- |
| 12 | Makefile | 4 ++++ |
| 13 | 1 file changed, 4 insertions(+) |
| 14 | |
| 15 | diff --git a/Makefile b/Makefile |
| 16 | index 17fc5c9..e0c2784 100644 |
| 17 | --- a/Makefile |
| 18 | +++ b/Makefile |
| 19 | @@ -231,3 +231,7 @@ rpm: |
| 20 | @$(RPMBUILD) -ta --define 'current yes' $(RPMTMP)/iputils.tar.bz2 |
| 21 | @rm -f $(RPMTMP)/iputils.tar.bz2 |
| 22 | |
| 23 | +install: |
| 24 | + for t in $(TARGETS); do \ |
| 25 | + install -D $$t $(DESTDIR)$(bindir)/$$t; \ |
| 26 | + done |