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

Skip to content

Commit e7c8efa

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 3944238 commit e7c8efa

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
@@ -47,6 +47,12 @@ install: all installdirs
4747
cp $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir/ || exit; \
4848
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$dir/*.h || exit; \
4949
done
50+
ifeq ($(vpath_build),yes)
51+
for file in dynloader.h parser/parse.h; do \
52+
cp $$file '$(DESTDIR)$(includedir_server)'/$$file || exit; \
53+
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$file || exit; \
54+
done
55+
endif
5056

5157
installdirs:
5258
$(mkinstalldirs) '$(DESTDIR)$(includedir)/libpq' '$(DESTDIR)$(includedir_internal)/libpq'

0 commit comments

Comments
 (0)
0