Override dh_auto_build to focus on selected subtrees and their dependencies
authorAaron M. Ucko <ucko@debian.org>
Sun, 29 May 2011 14:53:58 +0000 (14:53 +0000)
committerAaron M. Ucko <ucko@debian.org>
Sun, 29 May 2011 14:53:58 +0000 (14:53 +0000)
(as made possible by running configure --with-flat-makefile).

debian/rules

index 0db1c1cf44bdd178e95d9a48a918eb8dd6514364..a42525dfa4e20fdc7a9beed9cf101eb7234861ab 100755 (executable)
@@ -13,6 +13,7 @@ SOURCEDIR=${CURDIR}/c++
 DEB_CONFIGURE_EXTRA_FLAGS=--with-dll --with-mt --without-autodep \
     --without-makefile-auto-update --with-flat-makefile --without-dbapi \
     --without-lzo --with-runpath=/usr/lib/ncbi-blast+ --with-build-root=BUILD
+proj=algo/blast/ app/ objmgr/ objtools/align_format/ objtools/blast/
 
 # XXX - not quite right, as we get -DNDEBUG vs. -D_DEBUG
 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
@@ -26,6 +27,9 @@ override_dh_auto_configure:
        cd c++  &&  LD_LIBRARY_PATH=$(CURDIR)/c++/BUILD/lib \
            ./configure $(DEB_CONFIGURE_EXTRA_FLAGS)
 
+override_dh_auto_build:
+       cd c++/BUILD/build  &&  make -f Makefile.flat \
+           all_projects="$(proj)"
 
 instroot = debian/ncbi-blast+/usr
 override_dh_auto_install: