summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-08-05 15:47:16 +0200
committerDavid Tardon <dtardon@redhat.com>2015-08-05 15:47:16 +0200
commit104ee5560a5ab0b5597630179f5ed8714da001df (patch)
treea523c929f3e53c86118aa578ea5b2008c070ed21
parentd9b10697f3984e51d3870e049b99488d94ee735e (diff)
add make astyle target
Change-Id: I4db491dc046ffae8d9185f1d24e5c14d7f191deb
-rw-r--r--HACKING2
-rw-r--r--Makefile.am2
2 files changed, 3 insertions, 1 deletions
diff --git a/HACKING b/HACKING
index 4f02df4..5d8d713 100644
--- a/HACKING
+++ b/HACKING
@@ -3,6 +3,6 @@
This project uses mostly the same file naming and coding style like
libwpd and the rest of Fridrich's libraries. Please run
- astyle --options=astyle.options \*.cpp \*.h
+ make astyle
before committing.
diff --git a/Makefile.am b/Makefile.am
index d8eec87..eff6d14 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -20,3 +20,5 @@ distclean-local:
dist-hook:
git log --date=short --pretty="format:@%cd %an <%ae> [%H]%n%n%s%n%n%e%b" | sed -e "s|^\([^@]\)|\t\1|" -e "s|^@||" >$(distdir)/ChangeLog
+astyle:
+ astyle --options=astyle.options \*.cpp \*.h