Skip to content

Commit 8934926

Browse files
author
rasmussn
committed
Added Main.def target ... allowing Fortran.tbl to build without errors. Improved clean target.
1 parent dbf891f commit 8934926

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/syntax/Makefile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ STRATEGO_TBL = /usr/local/packages/strategoxt-0.17/stratego-front/syn/StrategoSt
55
TestFiles = $(wildcard $(TEST_DIR)/*.f90)
66
ASTFiles = $(wildcard $(TEST_DIR)/*.f90.ast)
77

8-
SDF_FILES = Fortran.sdf \
9-
FortranLex.sdf \
8+
SDF_FILES = FortranLex.sdf \
109
R400DataTypes.sdf \
1110
R500DataDeclarations.sdf \
1211
R600UseDataObjects.sdf \
@@ -22,10 +21,13 @@ SDF_FILES = Fortran.sdf \
2221

2322
all : Fortran.tbl
2423

25-
Fortran.tbl : Fortran.def
26-
sdf2table -i $< -o $@ -m Fortran
24+
Main.def : Main.sdf $(SDF_FILES)
25+
pack-sdf -i $< -o $@
26+
27+
Fortran.tbl : Main.def
28+
sdf2table -i $< -o $@ -m Main
2729

28-
Fortran.def : $(SDF_FILES)
30+
Fortran.def : Fortran.sdf $(SDF_FILES)
2931
pack-sdf -i $< -o $@
3032

3133
Fortran.rtg : Fortran.def
@@ -38,8 +40,6 @@ FExpr.tbl : FExpr.sdf
3840
pack-sdf -i $< -o FExpr.def
3941
sdf2table -i FExpr.def -o $@ -m FExpr
4042

41-
Fortran.def : $(SDF_FILES)
42-
4343
check : Fortran.tbl
4444
@for File in $(TestFiles) ;\
4545
do \
@@ -66,7 +66,7 @@ junk.ast-info.pp : junk.f90 Fortran.tbl
6666
sglri -i junk.f90 -p Fortran.tbl | addPosInfo -i junk.pt -p junk.f90 -m | implode-asfix | pp-aterm -o junk.ast-info.pp
6767

6868
clean :
69-
rm -f *.def *.tbl
69+
rm -f *.def *.tbl *.rtg *.sig
7070
rm -f *.ast *.pp
7171
rm -f *.o *.mod
7272
rm -f $(TEST_DIR)/*.ast $(TEST_DIR)/*.ast.pp

0 commit comments

Comments
 (0)