summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2015-01-05 16:45:23 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2015-01-05 16:45:23 -0800
commit9a5c98fe0d6de2a1a940bc8b3209ba0c4fadf7c4 (patch)
tree526a38eb649d17e0dc6abbd36109e3bea0e1469f
parentc864bc1221b4531012b2c172a26279f720258b78 (diff)
Added 'make astyle' to reformat code consistently.
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 7c53359..0da8449 100644
--- a/Makefile
+++ b/Makefile
@@ -19,7 +19,7 @@ PROG?=$(BUILDDIR)/src/cmark
BENCHINP?=README.md
JSMODULES=$(wildcard js/lib/*.js)
-.PHONY: all spec leakcheck clean fuzztest dingus upload jshint test testjs benchjs update-site upload-site check npm debug mingw archive tarball ziparchive testarchive testtarball testziparchive testlib bench apidoc
+.PHONY: all spec leakcheck clean fuzztest dingus upload jshint test testjs benchjs update-site upload-site check npm debug mingw archive tarball ziparchive testarchive testtarball testziparchive testlib bench astyle
all: $(PROG)
@echo "Binaries can be found in $(BUILDDIR)/src"
@@ -142,6 +142,10 @@ bench: $(BENCHFILE)
done \
} 2>&1 | grep 'real' | awk '{print $$2}' | python3 'bench/stats.py'
+astyle:
+ astyle --style=linux -t -p -r 'src/*.c' --exclude=scanners.c
+ astyle --style=linux -t -p -r 'src/*.h' --exclude=html_unescape.h
+
operf: $(PROG)
operf $(PROG) <$(BENCHINP) >/dev/null