Skip to content

Commit

Permalink
r.mapcalc: Add explicit dependency on mapcalc.tab.h (#3415)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bmwiedemann authored and neteler committed Feb 15, 2024
1 parent 0bd5c8d commit c8be723
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion raster/r.mapcalc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ default: multi
$(BIN)/$(PGM2)$(EXE): LIBES = $(LIBES2)
$(BIN)/$(PGM3)$(EXE): LIBES = $(LIBES3)

$(OBJDIR)/mapcalc.yy.o: mapcalc.tab.h
$(OBJDIR)/*.o: mapcalc.tab.h mapcalc.tab.c
$(OBJDIR)/mapcalc.yy.o: mapcalc.tab.h mapcalc.tab.c


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

Expand Down

0 comments on commit c8be723

Please sign in to comment.