[postgis-tickets] r16087 - Make sure target directories are created before copying files to them

Sandro Santilli strk at kbt.io
Tue Oct 31 08:33:31 PDT 2017


Author: strk
Date: 2017-10-31 08:33:31 -0700 (Tue, 31 Oct 2017)
New Revision: 16087

Modified:
   branches/2.3/configure.ac
   branches/2.3/liblwgeom/Makefile.in
Log:
Make sure target directories are created before copying files to them

References #3912 for 2.3 branch
References #3916 for 2.3 branch

Modified: branches/2.3/configure.ac
===================================================================
--- branches/2.3/configure.ac	2017-10-31 15:15:03 UTC (rev 16086)
+++ branches/2.3/configure.ac	2017-10-31 15:33:31 UTC (rev 16087)
@@ -13,6 +13,7 @@
 AC_CONFIG_HEADERS([postgis_config.h])
 AC_CONFIG_MACRO_DIR([macros])
 AC_CONFIG_AUX_DIR([build-aux])
+AC_PROG_INSTALL
 
 dnl Invoke libtool: we do this as it is the easiest way to find the PIC
 dnl flags required to build liblwgeom

Modified: branches/2.3/liblwgeom/Makefile.in
===================================================================
--- branches/2.3/liblwgeom/Makefile.in	2017-10-31 15:15:03 UTC (rev 16086)
+++ branches/2.3/liblwgeom/Makefile.in	2017-10-31 15:33:31 UTC (rev 16087)
@@ -163,7 +163,9 @@
 uninstall: uninstall-liblwgeom
 
 install-liblwgeom: liblwgeom.la
+	$(INSTALL) -d "$(DESTDIR)$(libdir)"
 	$(LIBTOOL) --mode=install $(INSTALL) liblwgeom.la "$(DESTDIR)$(libdir)/liblwgeom.la"
+	$(INSTALL) -d "$(DESTDIR)$(includedir)"
 	$(INSTALL) -m 0644 liblwgeom.h "$(DESTDIR)$(includedir)/liblwgeom.h"
 	$(INSTALL) -m 0644 liblwgeom_topo.h "$(DESTDIR)$(includedir)/liblwgeom_topo.h"
 



More information about the postgis-tickets mailing list