make sure destination for GDB module exists before installing
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 19 Apr 2011 12:32:21 +0000 (14:32 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 19 Apr 2011 12:32:23 +0000 (14:32 +0200)
Usually, this directory already exists because the library has
been copied there, but during a parallel make install this may
not have happened yet.

Reported-by: dirtyepic <dirtyepic.sk@gmail.com>
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
Makefile.am

index 55b51ae..be7844e 100644 (file)
@@ -228,4 +228,5 @@ install-data-local: $(srcdir)/isl.py
        '') echo Cannot find isl library name. GDB bindings not installed.;; \
        *) echo $(INSTALL_DATA) $(srcdir)/isl.py \
                $(DESTDIR)$(libdir)/$$libisl-gdb.py; \
+       test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"; \
        $(INSTALL_DATA) $(srcdir)/isl.py $(DESTDIR)$(libdir)/$$libisl-gdb.py; esac