mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-04-20 21:46:18 +00:00
Adding make style
This commit is contained in:
@@ -16,7 +16,7 @@ CLEANFILES = Doxygen.log coverage.info libnfc.pc
|
||||
|
||||
clean-local: clean-local-doc clean-local-coverage
|
||||
|
||||
.PHONY: clean-local-coverage clean-local-doc doc
|
||||
.PHONY: clean-local-coverage clean-local-doc doc style
|
||||
clean-local-coverage:
|
||||
-rm -rf coverage
|
||||
|
||||
@@ -28,3 +28,10 @@ doc : Doxyfile
|
||||
|
||||
DISTCHECK_CONFIGURE_FLAGS="--with-drivers=all"
|
||||
|
||||
style:
|
||||
find . -name "*.[ch]" -exec perl -pi -e 's/[ \t]+$$//' {} \;
|
||||
find . -name "*.[ch]" -exec astyle --formatted --mode=c --suffix=none \
|
||||
--indent=spaces=2 --indent-switches --indent-preprocessor \
|
||||
--keep-one-line-blocks --max-instatement-indent=60 \
|
||||
--brackets=linux --pad-oper --unpad-paren --pad-header \
|
||||
--align-pointer=name {} \;
|
||||
|
||||
Reference in New Issue
Block a user