Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | Add install-ptest rules. |
| 2 | |
| 3 | Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com> |
| 4 | Signed-off-by: Maxin B. John <maxin.john@enea.com> |
| 5 | Upstream-Status: Pending |
| 6 | |
| 7 | diff -ur a/Makefile.am b/Makefile.am |
| 8 | --- a/Makefile.am 2011-08-16 10:13:10.000000000 +0200 |
| 9 | +++ b/Makefile.am 2013-04-12 18:02:16.473715873 +0200 |
| 10 | @@ -31,3 +31,8 @@ |
| 11 | d=`date '+%d/%m/%Y'`; \ |
| 12 | sed 's|/\*@DIST_DATE@\*/|"'"$$d"'"|' $(srcdir)/src/version.c > \ |
| 13 | $(distdir)/src/version.c |
| 14 | + |
| 15 | +install-ptest: |
| 16 | + @for subdir in $(SUBDIRS); do \ |
| 17 | + $(MAKE) -C $$subdir DESTDIR=$(DESTDIR)/$$subdir $@; \ |
| 18 | + done |
| 19 | diff -ur a/tests/Makefile.am b/tests/Makefile.am |
| 20 | --- a/tests/Makefile.am 2011-11-11 19:39:42.000000000 +0100 |
| 21 | +++ b/tests/Makefile.am 2013-04-12 18:30:57.066301037 +0200 |
| 22 | @@ -132,4 +132,14 @@ |
| 23 | dtdel_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la |
| 24 | d_creat_ce_LDADD = ../src/libgdbm.la ../compat/libgdbm_compat.la |
| 25 | |
| 26 | +buildtests: $(check_PROGRAMS) $(TESTSUITE) |
| 27 | |
| 28 | +install-ptest: $(check_PROGRAMS) $(TESTSUITE) |
| 29 | + @$(INSTALL) -d $(DESTDIR) |
| 30 | + @for file in $^; do \ |
| 31 | + if [ -x .libs/$$file ]; then \ |
| 32 | + $(INSTALL_PROGRAM) .libs/$$file $(DESTDIR)/$$file; \ |
| 33 | + else \ |
| 34 | + $(INSTALL_PROGRAM) $$file $(DESTDIR) ; \ |
| 35 | + fi \ |
| 36 | + done |