浏览代码

Makefile: fix dependency of core/cfg.tab.c rule

* don't call bison twice

Fix #4337
Victor Seva 1 月之前
父节点
当前提交
d3e71874cf
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/Makefile

+ 2 - 1
src/Makefile

@@ -261,7 +261,8 @@ $(NAME): $(extra_objs) # static_modules
 core/lex.yy.c: core/cfg.lex core/cfg.tab.h $(ALLDEP)
 core/lex.yy.c: core/cfg.lex core/cfg.tab.h $(ALLDEP)
 	$(LEX) -o core/lex.yy.c $<
 	$(LEX) -o core/lex.yy.c $<
 
 
-core/cfg.tab.c core/cfg.tab.h: core/cfg.y  $(ALLDEP)
+core/cfg.tab.c: core/cfg.tab.h
+core/cfg.tab.h: core/cfg.y  $(ALLDEP)
 	$(YACC) $(YACC_FLAGS) $<
 	$(YACC) $(YACC_FLAGS) $<
 
 
 nullstring=
 nullstring=