manually add dependency from lexer.cpp to parser.hpp
[supertux.git] / tools / miniswig / Jamfile
index 9c096af..993efa4 100644 (file)
@@ -6,5 +6,10 @@ if $(LEX) && $(BISON) {
     C++Flags miniswig : -Wno-unused ;
     IncludeDir miniswig : . ;
     ExternalLibs miniswig : LEX ;
+
+# we gotta run bison before flex
+    lexer_cpp = [ SearchSource lexer.cpp ] ;
+    lexer_o = [ LocateTarget $(lexer_cpp:S=.o) ] ;
+    Depends lexer_o : [ LocateTarget parser.cpp : $(SUBDIR) ] ;
 }