From 02334d76e77d905ce6580bbb5a6b83c0d8b4f16b Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Wed, 24 Oct 2018 18:32:11 +0200 Subject: [PATCH] debianpkg: use redistclean target Now we can run dpkg-buildpackage from a dirty directory and it properly cleans up. Signed-off-by: David Lamparter --- debianpkg/rules | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.5