]> granicus.if.org Git - postgresql/commitdiff
Fix server header file installation with vpath builds
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 10 Nov 2011 18:52:54 +0000 (20:52 +0200)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 10 Nov 2011 18:54:50 +0000 (20:54 +0200)
Several server header files would not be installed in vpath builds
because they live in the build directory.

src/include/Makefile

index 1bfb4a7166d160931a87a71a5743813a6065e5c4..56940c8838faf5a888568fa4b707369ff4ed8294 100644 (file)
@@ -49,6 +49,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'