aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2013-03-29 21:39:55 -0400
committerPeter Eisentraut <peter_e@gmx.net>2013-03-29 21:39:55 -0400
commit602070f9cce790debd8d1469254e7726ab499ae7 (patch)
tree5fec7e29a7b8fb0f940b2cff70d75d1fb12a4711 /src
parent6caf759f3f34eb496f4a92c3db9d3289299066b9 (diff)
downloadpostgresql-602070f9cce790debd8d1469254e7726ab499ae7.tar.gz
postgresql-602070f9cce790debd8d1469254e7726ab499ae7.zip
ecpg: Parallel make fix
In some parallel make situations, the install-headers target could be called before the installation directories are created by installdirs, causing the installation to fail. Fix that by making install-headers depend on installdirs.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/ecpg/include/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/ecpg/include/Makefile b/src/interfaces/ecpg/include/Makefile
index eab833b9aca..e92e56f26f3 100644
--- a/src/interfaces/ecpg/include/Makefile
+++ b/src/interfaces/ecpg/include/Makefile
@@ -18,7 +18,7 @@ ecpg_headers = ecpgerrno.h ecpglib.h ecpgtype.h sqlca.h sql3types.h ecpg_informi
sqlda.h sqlda-compat.h sqlda-native.h
informix_headers = datetime.h decimal.h sqltypes.h
-install-headers: $(ecpg_headers) $(informix_headers)
+install-headers: $(ecpg_headers) $(informix_headers) installdirs
$(INSTALL_DATA) $(addprefix $(srcdir)/,$(ecpg_headers)) '$(DESTDIR)$(includedir)/'
$(INSTALL_DATA) $(addprefix $(srcdir)/,$(informix_headers)) '$(DESTDIR)$(informix_esql_dir)/'
$(INSTALL_DATA) $(ecpg_config_h) '$(DESTDIR)$(includedir)'