mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08: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
d5873b6359
commit
409b8c75ba
@ -49,6 +49,12 @@ install: all installdirs
|
|||||||
cp $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir/ || exit; \
|
cp $(srcdir)/$$dir/*.h '$(DESTDIR)$(includedir_server)'/$$dir/ || exit; \
|
||||||
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$dir/*.h || exit; \
|
chmod $(INSTALL_DATA_MODE) '$(DESTDIR)$(includedir_server)'/$$dir/*.h || exit; \
|
||||||
done
|
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:
|
installdirs:
|
||||||
$(MKDIR_P) '$(DESTDIR)$(includedir)/libpq' '$(DESTDIR)$(includedir_internal)/libpq'
|
$(MKDIR_P) '$(DESTDIR)$(includedir)/libpq' '$(DESTDIR)$(includedir_internal)/libpq'
|
||||||
|
Loading…
Reference in New Issue
Block a user