Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | This patch is used to create a new sub package libpam-xtests to do more checks. |
| 2 | |
| 3 | Upstream-Status: Pending |
| 4 | |
| 5 | Signed-off-by: Kang Kai <kai.kang@windriver.com> |
| 6 | --- Linux-PAM-1.1.4/xtests/Makefile.am.orig 2011-07-19 17:00:09.619980001 +0800 |
| 7 | +++ Linux-PAM-1.1.4/xtests/Makefile.am 2011-07-19 16:54:00.229979998 +0800 |
| 8 | @@ -7,7 +7,7 @@ |
| 9 | AM_LDFLAGS = -L$(top_builddir)/libpam -lpam \ |
| 10 | -L$(top_builddir)/libpam_misc -lpam_misc |
| 11 | |
| 12 | -CLEANFILES = *~ $(XTESTS) |
| 13 | +CLEANFILES = *~ |
| 14 | |
| 15 | EXTRA_DIST = run-xtests.sh tst-pam_dispatch1.pamd tst-pam_dispatch2.pamd \ |
| 16 | tst-pam_dispatch3.pamd tst-pam_dispatch4.pamd \ |
| 17 | @@ -51,3 +51,18 @@ |
| 18 | |
| 19 | xtests: $(XTESTS) run-xtests.sh |
| 20 | "$(srcdir)"/run-xtests.sh "$(srcdir)" ${XTESTS} ${NOSRCTESTS} |
| 21 | + |
| 22 | +all: $(XTESTS) |
| 23 | + |
| 24 | +install: install_xtests |
| 25 | + |
| 26 | +install_xtests: |
| 27 | + $(INSTALL) -d $(DESTDIR)$(pkgdatadir)/xtests |
| 28 | + for file in $(EXTRA_DIST) ; do \ |
| 29 | + $(INSTALL) $$file $(DESTDIR)$(pkgdatadir)/xtests ; \ |
| 30 | + done |
| 31 | + for file in $(XTESTS); do \ |
| 32 | + $(INSTALL) .libs/$$file $(DESTDIR)$(pkgdatadir)/xtests ; \ |
| 33 | + done |
| 34 | + |
| 35 | +.PHONY: all install_xtests |