Remove (g)indent references.

Unfortunately, there is no automatic way that is good to indent the code. Developers need to take care about indent themself ;) (Fixes Issue 84)
This commit is contained in:
Romuald Conty 2011-10-01 12:33:11 +00:00
parent 03a6f5e29c
commit ea0ffa615a
2 changed files with 0 additions and 39 deletions

View file

@ -28,34 +28,5 @@ clean-local-doc:
doc : Doxyfile
@DOXYGEN@ $(builddir)/Doxyfile
if HAS_INDENT
INDENT_ARGS = --blank-before-sizeof \
--blank-lines-after-commas \
--blank-lines-after-procedures \
--braces-after-func-def-line \
--braces-on-if-line \
--braces-on-struct-decl-line \
--continue-at-parentheses \
--cuddle-else \
--declaration-indentation 8 \
--indent-level 2 \
--line-length 120 \
--no-blank-lines-after-declarations \
--no-tabs \
--preprocessor-indentation 2 \
--procnames-start-lines \
--space-after-cast \
--space-after-procedure-calls
indent:
@[ ! -d $(top_srcdir)/.svn ] || \
[ 0 -eq $$(svn status | grep '\.[hc]$$' | tee /dev/fd/2 | wc -l) ] || \
( echo "These files are localy modified. 'commit' or 'reverse' them, then retry." >&2; false )
@for f in $$(find $(top_srcdir)/libnfc $(top_srcdir)/include $(top_srcdir)/examples -name "*.[hc]"); do \
echo " INDENT $$f"; \
$(INDENT) $(INDENT_ARGS) "$$f" || exit 1; \
done
endif
DISTCHECK_CONFIGURE_FLAGS="--with-drivers=all"

View file

@ -122,16 +122,6 @@ then
fi
AM_CONDITIONAL(DOC_ENABLED, [test x"$enable_doc" = xyes])
# The indent target require GNU indent
AC_PATH_PROG([INDENT], [indent])
AC_PATH_PROG([GINDENT], [gindent])
if test x"$GINDENT" != x""; then
INDENT="$GINDENT"
fi
AC_SUBST(INDENT)
AM_CONDITIONAL(HAS_INDENT, [test x"$INDENT" != x""])
# Dependencies
PKG_CONFIG_REQUIRES=""