Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 1 | From 8bea84a598b51a7ac7e50aa8f0f20857a9b6b07b 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 +++++ |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 12 | tests/Makefile.am | 12 ++++++++++++ |
| 13 | 2 files changed, 17 insertions(+) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 14 | |
| 15 | diff --git a/Makefile.am b/Makefile.am |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 16 | index 59e2643..5f3ceb0 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 17 | --- a/Makefile.am |
| 18 | +++ b/Makefile.am |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 19 | @@ -64,3 +64,8 @@ ChangeLog: |
| 20 | mv ChangeLog.tmp ChangeLog; \ |
| 21 | rm -f ChangeLog.tmp; \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 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 |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 29 | index fac6826..5dc2091 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 30 | --- a/tests/Makefile.am |
| 31 | +++ b/tests/Makefile.am |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 32 | @@ -143,3 +143,15 @@ d_creat_ce_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la |
| 33 | t_wordwrap_LDADD = ../tools/libgdbmapp.a |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 34 | |
| 35 | SUBDIRS = gdbmtool |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [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 |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 48 | -- |
| 49 | 2.25.1 |
| 50 | |