diff options
author | ng0 <ng0@n0.is> | 2019-10-27 13:07:15 +0000 |
---|---|---|
committer | ng0 <ng0@n0.is> | 2019-10-27 13:07:15 +0000 |
commit | 8ab5451d5ed72e662dadee139e0cb6913366ce43 (patch) | |
tree | b8f83d013af59a2d13f360c930237659ad803d27 | |
parent | 0a84fe50b66c50e4cad0f83de48d4588cf5dff03 (diff) | |
download | gnunet-8ab5451d5ed72e662dadee139e0cb6913366ce43.tar.gz gnunet-8ab5451d5ed72e662dadee139e0cb6913366ce43.zip |
impove make pretty nesting.
-rw-r--r-- | Makefile.am | 13 |
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 | ||
40 | ACLOCAL_AMFLAGS = -I m4 | 40 | ACLOCAL_AMFLAGS = -I m4 |
41 | 41 | ||
42 | # TODO: better nesting. | ||
43 | if HAVE_UNCRUSTIFY_BINARY | 42 | if HAVE_UNCRUSTIFY_BINARY |
44 | pretty: | 43 | MCRUSTIFY = 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 | ||
46 | if HAVE_YAPF_BINARY | ||
47 | find $(top_srcdir) -type f -name '*.py' -or -name '*.py.in' -print0 | xargs -0 $(YAPF_BINARY) -i 2>&1 || true | ||
48 | endif | 44 | endif |
45 | |||
46 | if HAVE_YAPF_BINARY | ||
47 | MYAPF = find $(top_srcdir) -type f -name '*.py' -or -name '*.py.in' -print0 | xargs -0 $(YAPF_BINARY) -i 2>&1 || true | ||
49 | endif | 48 | endif |
49 | |||
50 | pretty: | ||
51 | $(MCRUSTIFY) | ||
52 | $(MYAPF) | ||