]> granicus.if.org Git - postgis/commitdiff
Make sure target directories are created before copying files to them
authorSandro Santilli <strk@kbt.io>
Tue, 31 Oct 2017 15:15:03 +0000 (15:15 +0000)
committerSandro Santilli <strk@kbt.io>
Tue, 31 Oct 2017 15:15:03 +0000 (15:15 +0000)
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

configure.ac
liblwgeom/Makefile.in

index ce4d1665a95315c6b4af44869e8a0fe35b280deb..b9432df491fc67025d3520282e648ca8b82f54af 100644 (file)
@@ -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
index ac3b431c035ff8ad950061d7af0a9c6c12c160cb..b4d26ceeba0ac78bbf20215f6579efe29bcdffd6 100644 (file)
@@ -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"