8000 Fix server header file installation with vpath builds · intobs/postgres@003fae7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 003fae7

Browse files
committed
Fix server header file installation with vpath builds
Several server header files would not be installed in vpath builds because they live in the build directory.
1 parent 73e8ee9 commit 003fae7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/include/Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,12 @@ install: all installdirs
4545
cp $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir/ || exit; \
4646
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$dir/*.h || exit; \
4747
done
48+
ifeq ($(vpath_build),yes)
49+
for file in dynloader.h parser/parse.h; do \
50+
cp $$file '$(DESTDIR)$(includedir_server)'/$$file || exit; \
51+
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$file || exit; \
52+
done
53+
endif
4854

4955
installdirs:
5056
$(mkinstalldirs) '$(DESTDIR)$(includedir)/libpq' '$(DESTDIR)$(includedir_internal)/libpq'

0 commit comments

Comments
 (0)
0