Skip to content

Commit 7bcd38c

Browse files
bmwiedemannneteler
authored andcommitted
r.mapcalc: Add explicit dependency on mapcalc.tab.h (#3415)
Add explicit dependency on mapcalc.tab.c to tell make that both .c and .h are needed This allows for reproducible builds. Without this change, r.mapcalc and r3.mapcalc would be rebuilt a 2nd time in a make -j1 run with slightly varied order of mapcalc.yy.o and mapcalc.tab.o This might help improve #3406 This patch was done while working on reproducible builds for openSUSE.
1 parent 2c7fa77 commit 7bcd38c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

raster/r.mapcalc/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ default: multi
2020
$(BIN)/$(PGM2)$(EXE): LIBES = $(LIBES2)
2121
$(BIN)/$(PGM3)$(EXE): LIBES = $(LIBES3)
2222

23-
$(OBJDIR)/mapcalc.yy.o: mapcalc.tab.h
23+
$(OBJDIR)/*.o: mapcalc.tab.h mapcalc.tab.c
24+
$(OBJDIR)/mapcalc.yy.o: mapcalc.tab.h mapcalc.tab.c
25+
2426

2527
.SECONDARY: mapcalc.tab.c mapcalc.tab.h mapcalc.output
2628

0 commit comments

Comments
 (0)