Commit 784d42f4 authored by Julien Bonjean's avatar Julien Bonjean Committed by Alexandre Savard

[#2402] Added code indent support for gnome client

parent 131e03b6
# Global variables
src = $(top_srcdir)
ASTYLERC="$(top_srcdir)/../astylerc"
indent="/usr/bin/astyle"
# Preprocessor flags
AM_CPPFLAGS = $(DEPS_CFLAGS) \
$(LIBSEXY_CFLAGS) \
......@@ -21,3 +24,8 @@ AM_CPPFLAGS = $(DEPS_CFLAGS) \
-DLOCALEDIR=\""$(localedir)"\" \
-DSFLPHONE_UIDIR=\""$(datadir)/sflphone/ui"\"
indent:
@echo "Indenting code:"
if [ -f $(ASTYLERC) ] ; then \
find $(top_srcdir)/src/ -regex ".*\.\(h\|c\)" -exec $(indent) --options=$(ASTYLERC) {} \; ; \
fi
......@@ -43,3 +43,5 @@ install-exec-local:
uninstall-local:
-test -h $(DESTDIR)$(bindir)/sflphone && rm $(DESTDIR)$(bindir)/sflphone
all: indent
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment