From: Matthias Braun Date: Mon, 6 Jun 2005 15:23:36 +0000 (+0000) Subject: place generated files in source dir X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=67f2aad686e54206f3f0ce7d337b5a896d344e57;p=supertux.git place generated files in source dir SVN-Revision: 2574 --- diff --git a/mk/jam/bisonflex.jam b/mk/jam/bisonflex.jam index 141f839e7..3ec765b0c 100644 --- a/mk/jam/bisonflex.jam +++ b/mk/jam/bisonflex.jam @@ -6,7 +6,7 @@ if $(LEX) { rule LexRule { - local cfile = [ LocateTarget $(<:S=.c) ] ; + local cfile = [ LocateTarget $(<:S=.c) : $(SUBDIR) ] ; local object = [ CompileObjects $(cfile) ] ; Lex $(cfile) : $(<) ; @@ -17,7 +17,7 @@ if $(LEX) rule Lex++Rule { - local cppfile = [ LocateTarget $(<:S=.cpp) ] ; + local cppfile = [ LocateTarget $(<:S=.cpp) : $(SUBDIR) ] ; local object = [ CompileObjects $(cppfile) ] ; Lex $(cppfile) : $(<) ; @@ -51,8 +51,8 @@ if $(BISON) { rule BisonRule { - local cfile = [ LocateTarget $(<:S=.c) ] ; - local headerfile = [ LocateTarget $(<:S=.h) ] ; + local cfile = [ LocateTarget $(<:S=.c) : $(SUBDIR) ] ; + local headerfile = [ LocateTarget $(<:S=.h) : $(SUBDIR) ] ; local object = [ CompileObjects $(cfile) ] ; Includes $(headerfile:G=) : $(headerfile) ; @@ -67,8 +67,8 @@ if $(BISON) rule Bison++Rule { - local cppfile = [ LocateTarget $(<:S=.cpp) ] ; - local headerfile = [ LocateTarget $(<:S=.hpp) ] ; + local cppfile = [ LocateTarget $(<:S=.cpp) : $(SUBDIR) ] ; + local headerfile = [ LocateTarget $(<:S=.hpp) : $(SUBDIR) ] ; headerfile = $(headerfile:G=) ; local object = [ CompileObjects $(cppfile) ] ;