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

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


Author: strk
Date: 2017-10-31 08:15:03 -0700 (Tue, 31 Oct 2017)
New Revision: 16086

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

References #3912 for 2.4 branch
References #3916 for 2.4 branch

Modified: branches/2.4/configure.ac
===================================================================
--- branches/2.4/configure.ac	2017-10-31 00:33:40 UTC (rev 16085)
+++ branches/2.4/configure.ac	2017-10-31 15:15:03 UTC (rev 16086)
@@ -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.4/liblwgeom/Makefile.in
===================================================================
--- branches/2.4/liblwgeom/Makefile.in	2017-10-31 00:33:40 UTC (rev 16085)
+++ branches/2.4/liblwgeom/Makefile.in	2017-10-31 15:15:03 UTC (rev 16086)
@@ -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