aboutsummaryrefslogtreecommitdiff
path: root/gcc/d
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-11-08 11:06:26 +0100
committerMartin Liska <mliska@suse.cz>2022-11-09 09:00:36 +0100
commite5821d3f62b5bf532db1be661459b7553a956fa2 (patch)
tree1b9271fc3dc7589b00711bf940ed77146f85368e /gcc/d
parent8857a1e350cf34c4ac06429ec4cb97228489dd07 (diff)
downloadgcc-e5821d3f62b5bf532db1be661459b7553a956fa2.zip
gcc-e5821d3f62b5bf532db1be661459b7553a956fa2.tar.gz
gcc-e5821d3f62b5bf532db1be661459b7553a956fa2.tar.bz2
sphinx: support installation if sphinx-build is missing
gcc/ChangeLog: * Makefile.in: Support installation if sphinx-build is missing. gcc/ada/ChangeLog: * gcc-interface/Make-lang.in: Support installation if sphinx-build is missing. gcc/cp/ChangeLog: * Make-lang.in: Support installation if sphinx-build is missing. gcc/d/ChangeLog: * Make-lang.in: Support installation if sphinx-build is missing. gcc/fortran/ChangeLog: * Make-lang.in: Support installation if sphinx-build is missing. gcc/go/ChangeLog: * Make-lang.in: Support installation if sphinx-build is missing. Support installation if sphinx-build is missing. gcc/jit/ChangeLog: * Make-lang.in: Support installation if sphinx-build is missing.
Diffstat (limited to 'gcc/d')
-rw-r--r--gcc/d/Make-lang.in9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/d/Make-lang.in b/gcc/d/Make-lang.in
index 47bee4c..b7a4ef3 100644
--- a/gcc/d/Make-lang.in
+++ b/gcc/d/Make-lang.in
@@ -307,8 +307,7 @@ doc/gdc/pdf/latex/gdc.pdf: $(SPHINX_FILES)
+ make -C $(srcdir)/../doc latexpdf SOURCEDIR=$(abs_srcdir)/d/doc BUILDDIR=$(objdir)/doc/gdc/pdf SPHINXBUILD=$(SPHINX_BUILD)
$(DESTDIR)$(infodir)/gdc.info: doc/gdc/info/texinfo/gdc.info installdirs
- -rm -f $@
- -$(INSTALL_DATA) $< $@
+ -if [ -f $< ]; then rm -f $@; $(INSTALL_DATA) $< $@; fi
d.install-pdf: doc/gdc.pdf
@$(NORMAL_INSTALL)
@@ -349,10 +348,8 @@ d.install-html: $(build_htmldir)/d
d.install-man: $(DESTDIR)$(man1dir)/$(D_INSTALL_NAME)$(man1ext)
-$(DESTDIR)$(man1dir)/$(D_INSTALL_NAME)$(man1ext): doc/gdc/man/man/gdc.1 installdirs
- -rm -f $@
- -$(INSTALL_DATA) $< $@
- -chmod a-x $@
+$(DESTDIR)$(man1dir)/$(D_INSTALL_NAME)$(man1ext): installdirs
+ -if [ -f doc/gcc/man/man/gdc.1 ]; then rm -f $@; $(INSTALL_DATA) doc/gcc/man/man/gdc.1 $@; chmod a-x $@; fi
d.uninstall:
-rm -rf $(DESTDIR)$(bindir)/$(D_INSTALL_NAME)$(exeext)