summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2018-10-24 17:31:31 +0200
committerDavid Lamparter <equinox@diac24.net>2018-10-24 18:35:19 +0200
commit0b9013e44d4600713fb4471c1730656f8a3eb094 (patch)
treeea0b9388b34ca8d79f10042f8d16d88103c0b6bd /Makefile.am
parentbuild: make clean and dist consistent (diff)
downloadfrr-0b9013e44d4600713fb4471c1730656f8a3eb094.tar.xz
frr-0b9013e44d4600713fb4471c1730656f8a3eb094.zip
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 <equinox@diac24.net>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 120c02adb..025afa565 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -223,6 +223,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`