From 70b738f96812c369b836d9a5bc5472f4634518bb Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Wed, 24 Mar 2021 12:28:21 +0000 Subject: [PATCH] Fix installation of the jit header files gcc/jit/ 2021-03-24 Matthias Klose * Make-lang.in (jit.sphinx.html, jit.sphinx.pdf): Use $(mkinstalldirs), (jit.install-headers): Depend on installdirs. --- gcc/jit/Make-lang.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/jit/Make-lang.in b/gcc/jit/Make-lang.in index f9b0df8..663772a 100644 --- a/gcc/jit/Make-lang.in +++ b/gcc/jit/Make-lang.in @@ -249,7 +249,7 @@ jit.texinfo.install-pdf: doc/libgccjit.pdf SPHINX_BUILD_DIR=jit/sphinx-build jit.sphinx.html: - mkdir -p $(SPHINX_BUILD_DIR) + $(mkinstalldirs) $(SPHINX_BUILD_DIR) (cd $(srcdir)/jit/docs && \ make html BUILDDIR=$(PWD)/$(SPHINX_BUILD_DIR) ) @@ -270,7 +270,7 @@ jit.sphinx.install-html: jit.sphinx.html # see https://bugzilla.redhat.com/show_bug.cgi?id=1148845 ) jit.sphinx.pdf: $(SPHINX_BUILD_DIR)/latex/libgccjit.pdf $(SPHINX_BUILD_DIR)/latex/libgccjit.pdf: - mkdir -p $(SPHINX_BUILD_DIR) + $(mkinstalldirs) $(SPHINX_BUILD_DIR) (cd $(srcdir)/jit/docs && \ make latexpdf BUILDDIR=$(PWD)/$(SPHINX_BUILD_DIR) ) @@ -305,7 +305,7 @@ selftest-jit: # # Install hooks: -jit.install-headers: +jit.install-headers: installdirs $(INSTALL_DATA) $(srcdir)/jit/libgccjit.h \ $(DESTDIR)$(includedir)/libgccjit.h $(INSTALL_DATA) $(srcdir)/jit/libgccjit++.h \ -- 2.7.4