Skip to content

Commit

Permalink
r.mapcalc: Add explicit dependency on mapcalc.tab.h (OSGeo#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 OSGeo#3406

This patch was done while working on reproducible builds for openSUSE.
  • Loading branch information
bmwiedemann authored and jadenabrams100 committed Feb 21, 2024
1 parent c60554c commit 53f5ac7
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 53f5ac7

Please sign in to comment.