From 4c053c131ee13400bf1057f37dae3d0b7750e676 Mon Sep 17 00:00:00 2001 From: Ben Longbons Date: Tue, 24 Dec 2013 01:46:44 -0800 Subject: sigh, fix again --- real.make | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'real.make') diff --git a/real.make b/real.make index d99a823..dd22b2d 100644 --- a/real.make +++ b/real.make @@ -218,6 +218,7 @@ vpath %.lpp ${SRC_DIR} vpath %.cpp ${SRC_DIR} vpath %.hpp ${SRC_DIR} vpath %.tcc ${SRC_DIR} +vpath tools/% ${SRC_DIR} .DELETE_ON_ERROR: .DEFAULT_GOAL := all @@ -396,22 +397,22 @@ format-lpp: $(patsubst src/%,obj/%.formatted,${LEXERS}) format-ypp: $(patsubst src/%,obj/%.formatted,${PARSERS}) obj/%.cpp.formatted: src/%.cpp tools/indenter $(MKDIR_FIRST) - cd ${SRC_DIR} && apply-filter 'indenter -cpp' $< + apply-filter 'indenter -cpp' $< touch $@ obj/%.hpp.formatted: src/%.hpp tools/indenter $(MKDIR_FIRST) - cd ${SRC_DIR} && apply-filter 'indenter -cpp' $< + apply-filter 'indenter -cpp' $< touch $@ obj/%.tcc.formatted: src/%.tcc tools/indenter $(MKDIR_FIRST) - cd ${SRC_DIR} && apply-filter 'indenter -cpp' $< + apply-filter 'indenter -cpp' $< touch $@ obj/%.lpp.formatted: src/%.lpp tools/indenter $(MKDIR_FIRST) - cd ${SRC_DIR} && apply-filter 'indenter -lpp' $< + apply-filter 'indenter -lpp' $< touch $@ obj/%.ypp.formatted: src/%.ypp tools/indenter $(MKDIR_FIRST) - cd ${SRC_DIR} && apply-filter 'indenter -ypp' $< + apply-filter 'indenter -ypp' $< touch $@ .PHONY: format format-cpp format-hpp format-lpp format-ypp -- cgit v1.2.3-60-g2f50