Skip to content
Snippets Groups Projects
Commit f228d586 authored by Julien Bonjean's avatar Julien Bonjean
Browse files

[#2402] Added code indent support for gnome client

parent c135b1c2
No related branches found
No related tags found
No related merge requests found
# 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
......@@ -42,3 +42,5 @@ install-exec-local:
uninstall-local:
-test -h $(DESTDIR)$(bindir)/sflphone && rm $(DESTDIR)$(bindir)/sflphone
all: indent
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment