Skip to content

Commit 1d9d7a9

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 a062ee4 commit 1d9d7a9

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
@@ -48,6 +48,12 @@ install: all installdirs
4848
cp $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir/ || exit; \
4949
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$dir/*.h || exit; \
5050
done
51+
ifeq ($(vpath_build),yes)
52+
for file in dynloader.h catalog/schemapg.h parser/gram.h utils/probes.h; do \
53+
cp $$file '$(DESTDIR)$(includedir_server)'/$$file || exit; \
54+
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$file || exit; \
55+
done
56+
endif
5157

5258
installdirs:
5359
$(MKDIR_P) '$(DESTDIR)$(includedir)/libpq' '$(DESTDIR)$(includedir_internal)/libpq'

0 commit comments

Comments
 (0)