aboutsummaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index d69dd3a82..579939b09 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,3 +38,12 @@ docdir = $(datadir)/doc/gnunet/
38doc_DATA = COPYING README 38doc_DATA = COPYING README
39 39
40ACLOCAL_AMFLAGS = -I m4 40ACLOCAL_AMFLAGS = -I m4
41
42# TODO: better nesting.
43if HAVE_UNCRUSTIFY_BINARY
44pretty:
45 find $(top_srcdir) -type f -name '*.c' -or -name '*.h' -print0 | xargs -0 uncrustify -c $(top_srcdir)/contrib/uncrustify.cfg --replace --no-backup 2>&1 || true
46if HAVE_YAPF_BINARY
47 find $(top_srcdir) -type f -name '*.py' -or -name '*.py.in' -print0 | xargs -0 $(YAPF_BINARY) -i 2>&1 || true
48endif
49endif