aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am13
1 files changed, 8 insertions, 5 deletions
diff --git a/Makefile.am b/Makefile.am
index 579939b09..34e2c5e97 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -39,11 +39,14 @@ doc_DATA = COPYING README
39 39
40ACLOCAL_AMFLAGS = -I m4 40ACLOCAL_AMFLAGS = -I m4
41 41
42# TODO: better nesting.
43if HAVE_UNCRUSTIFY_BINARY 42if HAVE_UNCRUSTIFY_BINARY
44pretty: 43MCRUSTIFY = 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
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 44endif
45
46if HAVE_YAPF_BINARY
47MYAPF = find $(top_srcdir) -type f -name '*.py' -or -name '*.py.in' -print0 | xargs -0 $(YAPF_BINARY) -i 2>&1 || true
49endif 48endif
49
50pretty:
51 $(MCRUSTIFY)
52 $(MYAPF)