Whamcloud - gitweb
Fix up Lintain complaint about the "make distclean" ignoring errors
authorTheodore Ts'o <tytso@mit.edu>
Mon, 9 Jul 2007 01:36:12 +0000 (21:36 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 Jul 2007 01:36:43 +0000 (21:36 -0400)
This is a Debian-specific debian/rules change, just to clean up the
packaging script.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
debian/rules

index a1ce56b..bb3f1d3 100755 (executable)
@@ -191,8 +191,8 @@ ${BUILDBFSTAMP}: ${CFGBFSTAMP}
 clean:
        dh_testdir
        rm -rf ${STAMPSDIR}
-       -make -C ${stdbuilddir} -i distclean
-       -make -C ${bfbuilddir} -i distclean
+       [ ! -f ${stdbuilddir}/Makefile ] || make -C ${stdbuilddir} distclean
+       [ ! -f ${bfbuilddir}/Makefile ] || make -C ${bfbuilddir} distclean
        rm -rf ${stdbuilddir} ${bfbuilddir} ${mipsbuilddir} ${mipsbuilddir64}
        rm -f doc/libext2fs/*.html lib/et/com_err/*.html debian/*.substvars
        dh_clean