Skip to content
Snippets Groups Projects
Commit 784d42f4 authored by Julien Bonjean's avatar Julien Bonjean Committed by Alexandre Savard
Browse files

[#2402] Added code indent support for gnome client

parent 131e03b6
No related branches found
No related tags found
No related merge requests found
# Global variables # Global variables
src = $(top_srcdir) src = $(top_srcdir)
ASTYLERC="$(top_srcdir)/../astylerc"
indent="/usr/bin/astyle"
# Preprocessor flags # Preprocessor flags
AM_CPPFLAGS = $(DEPS_CFLAGS) \ AM_CPPFLAGS = $(DEPS_CFLAGS) \
$(LIBSEXY_CFLAGS) \ $(LIBSEXY_CFLAGS) \
...@@ -21,3 +24,8 @@ AM_CPPFLAGS = $(DEPS_CFLAGS) \ ...@@ -21,3 +24,8 @@ AM_CPPFLAGS = $(DEPS_CFLAGS) \
-DLOCALEDIR=\""$(localedir)"\" \ -DLOCALEDIR=\""$(localedir)"\" \
-DSFLPHONE_UIDIR=\""$(datadir)/sflphone/ui"\" -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: ...@@ -43,3 +43,5 @@ install-exec-local:
uninstall-local: uninstall-local:
-test -h $(DESTDIR)$(bindir)/sflphone && rm $(DESTDIR)$(bindir)/sflphone -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.
Please register or to comment