update to latest Policy
[alioth/cvs.git] / debian / rules
index 1deadaf..3ce485c 100755 (executable)
@@ -107,7 +107,9 @@ build build-arch: debian/.build_stamp
 debian/.build_stamp: debian/.configure_stamp
        dh_testdir
        cd debian/builddir && ${MAKE} ${MAKE_ARGS}
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
        cd debian/builddir && ${MAKE} -C doc ${MAKE_ARGS} doc html info pdf txt
+endif
 ifneq (,$(filter sanity,$(DEB_BUILD_OPTIONS)))
        # run the testsuite after build (DEB_BUILD_OPTIONS=sanity)
        # warning: this takes a *lot* of time!