mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
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.
This commit is contained in:
parent
3944238aab
commit
e7c8efa064
1 changed files with 6 additions and 0 deletions
|
|
@ -47,6 +47,12 @@ install: all installdirs
|
|||
cp $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir/ || exit; \
|
||||
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$dir/*.h || exit; \
|
||||
done
|
||||
ifeq ($(vpath_build),yes)
|
||||
for file in dynloader.h parser/parse.h; do \
|
||||
cp $$file '$(DESTDIR)$(includedir_server)'/$$file || exit; \
|
||||
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$file || exit; \
|
||||
done
|
||||
endif
|
||||
|
||||
installdirs:
|
||||
$(mkinstalldirs) '$(DESTDIR)$(includedir)/libpq' '$(DESTDIR)$(includedir_internal)/libpq'
|
||||
|
|
|
|||
Loading…
Reference in a new issue