Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 4e4b70a4a3dcf1fdbee9e68bed3b62f42b197a3a Mon Sep 17 00:00:00 2001 |
| 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 +++++ |
| 12 | tests/Makefile.am | 12 +++++++++++- |
| 13 | 2 files changed, 16 insertions(+), 1 deletion(-) |
| 14 | |
| 15 | diff --git a/Makefile.am b/Makefile.am |
| 16 | index 4cdc734..24b99f0 100644 |
| 17 | --- a/Makefile.am |
| 18 | +++ b/Makefile.am |
| 19 | @@ -45,3 +45,8 @@ ChangeLog: |
| 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 |
| 29 | index 3dbb580..22ffc44 100644 |
| 30 | --- a/tests/Makefile.am |
| 31 | +++ b/tests/Makefile.am |
| 32 | @@ -130,4 +130,14 @@ dtfetch_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 33 | dtdel_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la |
| 34 | d_creat_ce_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la |
| 35 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 36 | - |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 37 | +buildtests: $(check_PROGRAMS) $(TESTSUITE) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 38 | + |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 39 | +install-ptest: $(check_PROGRAMS) $(TESTSUITE) |
| 40 | + @$(INSTALL) -d $(DESTDIR) |
| 41 | + @for file in $^; do \ |
| 42 | + if [ -x .libs/$$file ]; then \ |
| 43 | + $(INSTALL_PROGRAM) .libs/$$file $(DESTDIR)/$$file; \ |
| 44 | + else \ |
| 45 | + $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \ |
| 46 | + fi \ |
| 47 | + done |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 48 | -- |
| 49 | 2.11.0 |
| 50 | |