Skip to content

Commit

Permalink
Add make style target
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed Jun 27, 2017
1 parent b2eca83 commit 9d016f7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ACLOCAL_AMFLAGS = -I m4

SUBDIRS = contrib libfreefare test examples
libfreefare_subdirs = libfreefare test examples

SUBDIRS = contrib $(libfreefare_subdirs)

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libfreefare.pc
Expand Down Expand Up @@ -39,3 +41,7 @@ svn-keywords:
svn-keywords-check:
@echo "Files missing a '$$"Id"$$' vcs keyword:"
@$(SVN_KEYWORDS_FILES_LIST_CMD) | xargs grep -L '\$$Id[^$$]*\$$'

style:
find ${libfreefare_subdirs} -name '*.[ch]' -exec perl -pi -e 's/[ \t]+$$//' {} \;
find ${libfreefare_subdirs} -name '*.[ch]' -exec astyle --style=linux --indent=force-tab-x --lineend=linux '{}' ';'

0 comments on commit 9d016f7

Please sign in to comment.