From c21b0031a11ad445603f29e691d368d253c39f00 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 27 Aug 2024 23:13:09 +0100 Subject: [PATCH] buildsys: regen build/main.c when config.status changes ... so that e.g. a change in the `prefix` or `libdir` patch can take effect. --- Makefile.rules | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.rules b/Makefile.rules index dc90c483c3..06e69c8e1d 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -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 $< >> $@