1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-12 10:04:14 +02:00

Disconnect help.auto.c from build-help in Makefile.

When there was an issue with the system library path during building, the build-help rule would fail during executing ./build-help with the effect that main.c wouldn't build.

Break out help.auto.c generation from the build-help stage to allow it to be re-executed when the library path has been corrected.
This commit is contained in:
Daniel Gustafsson 2022-02-23 17:29:17 +01:00 committed by GitHub
parent 67bdf07e69
commit f798458e1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View File

@ -125,6 +125,17 @@
</release-improvement-list>
<release-development-list>
<release-item>
<github-pull-request id="1672"/>
<release-item-contributor-list>
<release-item-ideator id="daniel.gustafsson"/>
<release-item-contributor id="david.steele"/>
</release-item-contributor-list>
<p>Disconnect <file>help.auto.c</file> from <id>build-help</id> in <file>Makefile</file>.</p>
</release-item>
<release-item>
<commit subject="Add read range to all storage drivers."/>
<commit subject="Implement restore ownership without updating manifest internals."/>

View File

@ -249,6 +249,8 @@ OBJS_BUILD_HELP = $(patsubst %.c,$(BUILDDIR)/%.o,$(SRCS_BUILD) $(SRCS_BUILD_HELP
build-help: $(OBJS_BUILD_HELP) build/config/config.yaml build/help/help.xml
$(CC) -o build-help $(OBJS_BUILD_HELP) $(LDFLAGS) $(LIBS) $(LIBS_BUILD)
command/help/help.auto.c: build-help
./build-help $(VPATH)
####################################################################################################################################
@ -284,7 +286,7 @@ clean-all: clean
# Special per-object flags
####################################################################################################################################
$(BUILDDIR)/postgres/interface/page.o: CFLAGS += @CFLAGS_PAGE_CHECKSUM@
$(BUILDDIR)/main.o: build-help
$(BUILDDIR)/main.o: command/help/help.auto.c
####################################################################################################################################
# Compile and generate dependencies