From 341fd49b42855e5b197ecfd98bafc66e65eccfa8 Mon Sep 17 00:00:00 2001 From: ng0 Date: Mon, 14 Oct 2019 12:10:35 +0000 Subject: 'make pretty' rule using uncrustify, detect uncrustify in configure script. closes #5904 --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index d69dd3a82..f2b48b358 100644 --- a/Makefile.am +++ b/Makefile.am @@ -38,3 +38,8 @@ docdir = $(datadir)/doc/gnunet/ doc_DATA = COPYING README ACLOCAL_AMFLAGS = -I m4 + +if HAVE_UNCRUSTIFY +pretty: + find $(top_srcdir) -type f ! -path '*/.*' ! -path '*/_*' -name '*.c' -name '*.h' -print0 | xargs -0 uncrustify -c $(top_srcdir) --replace --no-backup 2>&1 || true +endif -- cgit v1.2.3