summaryrefslogtreecommitdiff
path: root/real.make
diff options
context:
space:
mode:
authorBen Longbons <b.r.longbons@gmail.com>2013-12-14 19:53:52 -0800
committerBen Longbons <b.r.longbons@gmail.com>2013-12-23 11:52:55 -0800
commit98225193b93906351dfe2ad594a390997e301584 (patch)
tree6ffab1b1bc435ad17a2b1351699f8aac43e231d3 /real.make
parentafc52a3e6a8dd275d48a5e21cb15086b3ec63b5b (diff)
downloadtmwa-98225193b93906351dfe2ad594a390997e301584.tar.gz
tmwa-98225193b93906351dfe2ad594a390997e301584.tar.bz2
tmwa-98225193b93906351dfe2ad594a390997e301584.tar.xz
tmwa-98225193b93906351dfe2ad594a390997e301584.zip
Make a formatter for lex files
Diffstat (limited to 'real.make')
-rw-r--r--real.make13
1 files changed, 10 insertions, 3 deletions
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