From: David Lamparter Date: Wed, 24 Oct 2018 16:32:11 +0000 (+0200) Subject: debianpkg: use redistclean target X-Git-Tag: 7.1_pulled~219^2~66 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=02334d76e77d905ce6580bbb5a6b83c0d8b4f16b;p=matthieu%2Ffrr.git debianpkg: use redistclean target Now we can run dpkg-buildpackage from a dirty directory and it properly cleans up. Signed-off-by: David Lamparter --- diff --git a/debianpkg/rules b/debianpkg/rules index f924c89f46..a7f8b8c454 100755 --- a/debianpkg/rules +++ b/debianpkg/rules @@ -157,3 +157,8 @@ endif rm debian/tmp/usr/lib/*.la rm debian/tmp/usr/lib/frr/modules/*.la rm debian/tmp/usr/lib/frr/libyang_plugins/*.la + +override_dh_auto_clean: +# we generally do NOT want a full distclean since that wipes both +# debianpkg/changelog and config.version + if test -f Makefile; then make redistclean; fi