summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2018-10-24 17:44:04 +0200
committerDavid Lamparter <equinox@diac24.net>2018-10-24 18:35:15 +0200
commit67cf020d17b48a21fddfa43718b089ba82837ee0 (patch)
tree4f9453def6730d61663a78a0595db1deb782652d /Makefile.am
parentbuild: work around automake wtf (diff)
downloadfrr-67cf020d17b48a21fddfa43718b089ba82837ee0.tar.xz
frr-67cf020d17b48a21fddfa43718b089ba82837ee0.zip
build: make clean and dist consistent
We weren't cleaning up some files (a whole lot of python foobar) and had some files in the dist tarball that don't quite belong there. Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 9a7b7ad35..120c02adb 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -82,6 +82,7 @@ var-%:
EXTRA_DIST =
BUILT_SOURCES =
CLEANFILES =
+DISTCLEANFILES =
examplesdir = $(exampledir)
@@ -216,6 +217,12 @@ EXTRA_DIST += \
noinst_HEADERS += defaults.h
+clean-local: clean-python
+.PHONY: clean-python
+clean-python:
+ find -name __pycache__ -o -name .pytest_cache | xargs rm -rf
+ find -name "*.pyc" -o -name "*_clippy.c" | xargs rm -f
+
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`