From: Matthias Braun Date: Sat, 3 Mar 2007 15:24:07 +0000 (+0000) Subject: fix jamfile to avoid having to rum jam twice when miniswig inputfiles changed X-Git-Url: https://git.octo.it/?a=commitdiff_plain;h=8597837cd6e8a2d9b7f50d9d8e436a5981d49902;p=supertux.git fix jamfile to avoid having to rum jam twice when miniswig inputfiles changed SVN-Revision: 4912 --- diff --git a/src/scripting/Jamfile b/src/scripting/Jamfile index 7dc9dc0c5..3c3451a3b 100644 --- a/src/scripting/Jamfile +++ b/src/scripting/Jamfile @@ -10,13 +10,18 @@ if $(MINISWIG) local headerfile = [ LocateTarget $(<:S=.hpp) : $(SUBDIR) ] ; SEARCH on $(headerfile) = $(SOURCH_SOURCE) ; - Depends $(cppfile) : $(headerfile) ; MiniSwig $(cppfile) : $(sources) ; + CPPFLAGS on $(cppfile) = $(CPPFLAGS) -DSCRIPTING_API ; headerfile on $(cppfile) = $(headerfile) ; modulename on $(cppfile) = $(3) ; FLAGS on $(cppfile) = $(4) ; + local h = $(headerfile:G=) ; + h = $(h:D=) ; + Includes $(h) : $(headerfile) ; + Depends $(headerfile) : $(cppfile) ; + local object = [ CompileObject $(cppfile) ] ; return $(object) ;