diff options
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | debian/rules | 6 |
2 files changed, 8 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog index a02139d..d517621 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,8 @@ xutils-dev (1:7.5+5) UNRELEASED; urgency=low * Wrap Build-Depends. * Add build-dep on xutils-dev for lndir. * makedepend 1.0.3. + * Introduce SUBDIRS_CHECK where one can list packages which implement a + testsuite. Put makedepend in it. -- Julien Cristau <jcristau@debian.org> Sat, 16 Oct 2010 22:27:22 +0200 diff --git a/debian/rules b/debian/rules index 09d76a6..cd1a896 100755 --- a/debian/rules +++ b/debian/rules @@ -15,6 +15,7 @@ include debian/xsfbs/xsfbs.mk # This package contains multiple modules as shipped by upstream. Each module is # contained in a subdirectory in the root dir of the package. You must list each # subdirectory explicitly so that the build system knows what to build SUBDIRS= gccmakedep imake lndir makedepend util-macros xorg-cf-files +SUBDIRS_CHECK= makedepend CFLAGS = -Wall -g ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) @@ -49,6 +50,11 @@ $(STAMP_DIR)/build-%: $(STAMP_DIR)/patch CFLAGS="$(CFLAGS)" cd $*-build && \ $(MAKE) + # Possible "make check": + if echo $(SUBDIRS_CHECK) | grep -qs "\<$*\>"; then \ + cd $*-build && \ + $(MAKE) check; \ + fi >$@ clean: xsfclean |