Commit bc86ddc1 authored by sebastien's avatar sebastien
Browse files

trunk preprocessor: small simplification of the Makefile

git-svn-id: ac1d8469-bf42-47a9-8791-bf33cf982152
parent a7e32f50
......@@ -68,18 +68,12 @@ macro/ macro/MacroBison.hh macro/location.hh macro/stack.hh macro/p
# Dependencies
# General rule for creating per-source dependencies Makefile
# We use -MG to avoid failing on generated headers (MacroBison.hh, DynareBison.hh)
# As a consequence, these headers are included without path-prefix
%.d: DynareBison.hh macro/MacroBison.hh
@set -e; rm -f $@; \
$(CXX) -MM -MG $(CPPFLAGS) $< > $@.$$$$; \
$(CXX) -MM $(CPPFLAGS) $< > $@.$$$$; \
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
# As DynareBison.hh, this file is included in the .d files without its path (since it is generated), so we force the path
vpath MacroBison.hh macro
-include $(MAIN_OBJS:.o=.d)
-include $(MACRO_OBJS:.o=.d)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment