From 98225193b93906351dfe2ad594a390997e301584 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Sat, 14 Dec 2013 19:53:52 -0800 Subject: Make a formatter for lex files --- real.make | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'real.make') diff --git a/real.make b/real.make index 3ae013b..58eae29 100644 --- a/real.make +++ b/real.make @@ -384,6 +384,13 @@ dist/%-bundled.tar: dist/%-src.tar dist/%-attoconf-only.tar dist: dist/tmwa-${VERSION_FULL}-src.tar dist/tmwa-${VERSION_FULL}-bundled.tar .PHONY: dist -format: - cd ${SRC_DIR} && apply-filter 'pp-indent | bs-align' ${REAL_SOURCES} ${REAL_HEADERS} ${LEXERS} ${PARSERS} -.PHONY: format +format: format-cpp format-hpp format-lpp format-ypp +format-cpp: + cd ${SRC_DIR} && apply-filter indent-cpp ${REAL_SOURCES} +format-hpp: + cd ${SRC_DIR} && apply-filter indent-cpp ${REAL_HEADERS} +format-lpp: + cd ${SRC_DIR} && apply-filter indent-lpp ${LEXERS} +format-ypp: + cd ${SRC_DIR} && apply-filter indent-ypp ${PARSERS} +.PHONY: format format-cpp format-hpp format-lpp format-ypp -- cgit v1.2.3-60-g2f50