mirror of
https://github.com/postgres/postgres.git
synced 2026-04-22 14:47:29 -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
a062ee4257
commit
1d9d7a91bf
1 changed files with 6 additions and 0 deletions
|
|
@ -48,6 +48,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 catalog/schemapg.h parser/gram.h utils/probes.h; do \
|
||||
cp $$file '$(DESTDIR)$(includedir_server)'/$$file || exit; \
|
||||
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$file || exit; \
|
||||
done
|
||||
endif
|
||||
|
||||
installdirs:
|
||||
$(MKDIR_P) '$(DESTDIR)$(includedir)/libpq' '$(DESTDIR)$(includedir_internal)/libpq'
|
||||
|
|
|
|||
Loading…
Reference in a new issue