From: David Lamparter Date: Wed, 24 Oct 2018 15:31:31 +0000 (+0200) Subject: build: add "redistclean" target X-Git-Tag: frr-6.0.1~18^2~3 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=9d86ee74e6a414bba49ea7c45b392c284e3d3b64;p=matthieu%2Ffrr.git build: add "redistclean" target 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 --- diff --git a/Makefile.am b/Makefile.am index e88dc416eb..0439dca19f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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`