]> git.puffer.fish Git - matthieu/frr.git/commitdiff
build: add "redistclean" target
authorDavid Lamparter <equinox@diac24.net>
Wed, 24 Oct 2018 15:31:31 +0000 (17:31 +0200)
committerDavid Lamparter <equinox@diac24.net>
Thu, 25 Oct 2018 15:30:21 +0000 (17:30 +0200)
This puts a source tree back in the state it was in after unpacking a
dist tarball.  Different from distclean in that it doesn't remove files
that are included in the tarball.

Signed-off-by: David Lamparter <equinox@diac24.net>
Makefile.am

index e88dc416eb64c58b5bd67e3240c19fb5f61b1394..0439dca19fa857443060bf4b125d643f5de6ec10 100644 (file)
@@ -220,6 +220,9 @@ clean-python:
        find -name __pycache__ -o -name .pytest_cache | xargs rm -rf
        find -name "*.pyc" -o -name "*_clippy.c" | xargs rm -f
 
+redistclean:
+       $(MAKE) distclean CONFIG_CLEAN_FILES="$(filter-out $(EXTRA_DIST), $(CONFIG_CLEAN_FILES))"
+
 indent:
        tools/indent.py `find sharpd bgpd eigrpd include isisd lib nhrpd ospf6d ospfd pimd qpb ripd vtysh zebra -name '*.[ch]' | grep -v include/linux`