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

Skip to content

Commit 37e66e7

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 0b6a1e8 commit 37e66e7

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

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

0 commit comments

Comments
 (0)
0