Skip to content

Commit

Permalink
buildsys: regen build/main.c when config.status changes
Browse files Browse the repository at this point in the history
... so that e.g. a change in the `prefix` or `libdir` patch can take effect.
  • Loading branch information
fingolfin committed Aug 27, 2024
1 parent 1be1120 commit c21b003
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.rules
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ gap$(EXEEXT): $(OBJS) cnf/GAP-LDFLAGS cnf/GAP-LIBS cnf/GAP-OBJS build/obj/src/ma
$(QUIET_LINK)$(LINK) $(GAP_LDFLAGS) build/obj/src/main.c.o $(OBJS) $(GAP_LIBS) -o $@

# generate a modified copy of main.c for use by the `gap-install` binary
build/main.c: src/main.c
build/main.c: src/main.c config.status
@echo "#define SYS_DEFAULT_PATHS \"$(libdir)/gap;$(datarootdir)/gap\"" > $@
@cat $< >> $@

Expand Down

0 comments on commit c21b003

Please sign in to comment.