From: Sandro Santilli Date: Tue, 31 Oct 2017 15:15:03 +0000 (+0000) Subject: Make sure target directories are created before copying files to them X-Git-Tag: 2.4.2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=55865b5cc1f342406702a112e833371c5d48cb38;p=postgis Make sure target directories are created before copying files to them References #3912 for 2.4 branch References #3916 for 2.4 branch git-svn-id: http://svn.osgeo.org/postgis/branches/2.4@16086 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index ce4d1665a..b9432df49 100644 --- a/configure.ac +++ b/configure.ac @@ -13,6 +13,7 @@ AC_INIT() 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 diff --git a/liblwgeom/Makefile.in b/liblwgeom/Makefile.in index ac3b431c0..b4d26ceeb 100644 --- a/liblwgeom/Makefile.in +++ b/liblwgeom/Makefile.in @@ -163,7 +163,9 @@ install: install-liblwgeom 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"