]> git.puffer.fish Git - matthieu/frr.git/commitdiff
debianpkg: use redistclean target
authorDavid Lamparter <equinox@diac24.net>
Wed, 24 Oct 2018 16:32:11 +0000 (18:32 +0200)
committerDavid Lamparter <equinox@diac24.net>
Tue, 19 Feb 2019 20:30:51 +0000 (21:30 +0100)
Now we can run dpkg-buildpackage from a dirty directory and it properly
cleans up.

Signed-off-by: David Lamparter <equinox@diac24.net>
debianpkg/rules

index f924c89f4633ea648c2496de1bdea3f7cebecdb5..a7f8b8c454516622ca74177e5a01d9e97706d57a 100755 (executable)
@@ -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