Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | From 41448708e163c8ec1f980464e7dd6741db427c8a Mon Sep 17 00:00:00 2001 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 2 | From: Josep Puigdemont <josep.puigdemont@enea.com> |
| 3 | Date: Sun, 4 May 2014 16:02:07 +0200 |
| 4 | Subject: [PATCH] Add install-ptest rules. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 5 | |
| 6 | Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com> |
| 7 | Signed-off-by: Maxin B. John <maxin.john@enea.com> |
| 8 | Upstream-Status: Pending |
| 9 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 10 | --- |
| 11 | Makefile.am | 5 +++++ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 12 | tests/Makefile.am | 11 +++++++++++ |
| 13 | 2 files changed, 16 insertions(+) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 14 | |
| 15 | diff --git a/Makefile.am b/Makefile.am |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 16 | index ecc03df..9fbbda5 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | --- a/Makefile.am |
| 18 | +++ b/Makefile.am |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 19 | @@ -55,3 +55,8 @@ ChangeLog: |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 20 | awk -f $(top_srcdir)/git2chg.awk \ |
| 21 | -v append=$(top_srcdir)/$(prev_change_log) > ChangeLog; \ |
| 22 | fi |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 23 | + |
| 24 | +install-ptest: |
| 25 | + @for subdir in $(SUBDIRS); do \ |
| 26 | + $(MAKE) -C $$subdir DESTDIR=$(DESTDIR)/$$subdir $@; \ |
| 27 | + done |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 28 | diff --git a/tests/Makefile.am b/tests/Makefile.am |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 29 | index dbe17dd..06f537f 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 30 | --- a/tests/Makefile.am |
| 31 | +++ b/tests/Makefile.am |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 32 | @@ -169,3 +169,14 @@ EXTRA_DIST += \ |
| 33 | gdbmtool/base.exp\ |
| 34 | config/default.exp |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 35 | |
| 36 | +buildtests: $(check_PROGRAMS) $(TESTSUITE) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 37 | + |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 38 | +install-ptest: $(check_PROGRAMS) $(TESTSUITE) |
| 39 | + @$(INSTALL) -d $(DESTDIR) |
| 40 | + @for file in $^; do \ |
| 41 | + if [ -x .libs/$$file ]; then \ |
| 42 | + $(INSTALL_PROGRAM) .libs/$$file $(DESTDIR)/$$file; \ |
| 43 | + else \ |
| 44 | + $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \ |
| 45 | + fi \ |
| 46 | + done |