From b5276239670c5534bdb304ddb2e5abd66f159609 Mon Sep 17 00:00:00 2001 From: sebastien Date: Tue, 28 Apr 2009 16:16:12 +0000 Subject: [PATCH] trunk preprocessor: small simplification of the Makefile git-svn-id: https://www.dynare.org/svn/dynare/trunk@2641 ac1d8469-bf42-47a9-8791-bf33cf982152 --- Makefile.in | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile.in b/Makefile.in index 8dea6040..2fc4d8ec 100644 --- a/Makefile.in +++ b/Makefile.in @@ -68,18 +68,12 @@ macro/MacroBison.cc 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: %.cc +%.d: %.cc 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)