Skip to content

Commit 026e8d7

Browse files
committed
make final compiler in 3 stages
1 parent 5d15b70 commit 026e8d7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ compiler: compiler2 $(COMPF)/Grammar.class $(COMPF)/Main.class tools
217217
cp frege/tools/yygenpar-fr frege/tools/YYgenparM-fr build/frege/tools
218218
@echo Compiler ready
219219

220-
$(COMPF)/Grammar.class: frege/compiler/Grammar.fr $(COMPF)/Scanner.class $(COMPF)/GUtil.class
220+
$(COMPF)/Grammar.class: frege/compiler/Grammar.fr $(COMPF)/GUtil.class
221221
$(FREGEC2) -v frege/compiler/Grammar.fr
222222
frege/compiler/Grammar.fr: frege/compiler/Grammar.y
223223
@echo 1 shift/reduce conflict expected
@@ -229,8 +229,8 @@ frege/Version.fr: .git/index
229229
perl scripts/mkversion.pl >frege/Version.fr
230230
$(COMPF)/Scanner.class: $(DIR)/Prelude.class frege/compiler/Scanner.fr
231231
$(FREGEC2) -make frege.compiler.Scanner
232-
$(COMPF)/GUtil.class: $(COMPF)/Scanner.class frege/compiler/GUtil.fr
233-
$(FREGEC2) frege/compiler/GUtil.fr
232+
$(COMPF)/GUtil.class: frege/compiler/GUtil.fr $(DIR)/Prelude.class
233+
$(FREGEC2) -make frege/compiler/GUtil.fr
234234
$(COMPF)/Main.class: $(DIR)/Prelude.class frege/compiler/Main.fr frege/Version.fr
235235
$(FREGEC2) -make frege.compiler.Main
236236
$(DIR)/Prelude.class: $(COMPF2)/Main.class $(PRELUDE)

0 commit comments

Comments
 (0)