aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/Make-lang.in
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/go/Make-lang.in')
-rw-r--r--gcc/go/Make-lang.in65
1 files changed, 29 insertions, 36 deletions
diff --git a/gcc/go/Make-lang.in b/gcc/go/Make-lang.in
index 0e81268..e5de16f 100644
--- a/gcc/go/Make-lang.in
+++ b/gcc/go/Make-lang.in
@@ -88,57 +88,46 @@ go1$(exeext): $(GO_OBJS) attribs.o $(BACKEND) $(LIBDEPS) $(go.prev)
# Documentation.
-GO_TEXI_FILES = \
- go/gccgo.texi \
- $(gcc_docdir)/include/fdl.texi \
- $(gcc_docdir)/include/gpl_v3.texi \
- $(gcc_docdir)/include/gcc-common.texi \
- gcc-vers.texi
-
-doc/gccgo.info: $(GO_TEXI_FILES)
- if test "x$(BUILD_INFO)" = xinfo; then \
- rm -f doc/gccgo.info*; \
- $(MAKEINFO) $(MAKEINFOFLAGS) -I $(gcc_docdir) \
- -I $(gcc_docdir)/include -o $@ $<; \
+doc/gccgo/info/texinfo/gccgo.info: $(SPHINX_FILES)
+ + if [ x$(SPHINX_BUILD) = xsphinx-build ]; then \
+ make -C $(srcdir)/../doc info SOURCEDIR=$(abs_srcdir)/go/doc/ BUILDDIR=$(objdir)/doc/gccgo/info; \
else true; fi
-doc/gccgo.dvi: $(GO_TEXI_FILES)
- $(TEXI2DVI) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
+doc/gccgo/pdf/latex/gccgo.pdf: $(SPHINX_FILES)
+ + make -C $(srcdir)/../doc latexpdf SOURCEDIR=$(abs_srcdir)/go/doc/ BUILDDIR=$(objdir)/doc/gccgo/pdf
-doc/gccgo.pdf: $(GO_TEXI_FILES)
- $(TEXI2PDF) -I $(abs_docdir) -I $(abs_docdir)/include -o $@ $<
-
-$(build_htmldir)/go/index.html: $(GO_TEXI_FILES)
- $(mkinstalldirs) $(@D)
- rm -f $(@D)/*
- $(TEXI2HTML) -I $(gcc_docdir) -I $(gcc_docdir)/include \
- -I $(srcdir)/go -o $(@D) $<
-
-.INTERMEDIATE: gccgo.pod
-
-gccgo.pod: go/gccgo.texi
- -$(TEXI2POD) -D gccgo < $< > $@
+doc/gccgo/html/html/index.html: $(SPHINX_FILES)
+ + make -C $(srcdir)/../doc html SOURCEDIR=$(abs_srcdir)/go/doc/ BUILDDIR=$(objdir)/doc/gccgo/html
# Build hooks.
go.all.cross: gccgo-cross$(exeext)
go.start.encap: gccgo$(exeext)
go.rest.encap:
-go.info: doc/gccgo.info
-go.dvi: doc/gccgo.dvi
-go.pdf: doc/gccgo.pdf
-go.html: $(build_htmldir)/go/index.html
-go.srcinfo: doc/gccgo.info
+
+go.info: doc/gccgo/info/texinfo/gccgo.info
+
+go.pdf: doc/gccgo/pdf/latex/gccgo.pdf
+
+go.html: doc/gccgo/html/html/index.html
+
+go.srcinfo: doc/gccgo/info/texinfo/gccgo.info
-cp -p $^ $(srcdir)/doc
+
go.srcextra:
go.tags: force
cd $(srcdir)/go; \
$(ETAGS) -o TAGS.sub *.cc *.h gofrontend/*.h gofrontend/*.cc; \
$(ETAGS) --include TAGS.sub --include ../TAGS.sub
-go.man: doc/gccgo.1
-go.srcman: doc/gccgo.1
+
+go.man: doc/gccgo/man/man/gccgo.1
+
+go.srcman: doc/gccgo/man/man/gccgo.1
-cp -p $^ $(srcdir)/doc
+doc/gccgo/man/man/gccgo.1: $(SPHINX_FILES)
+ + make -C $(srcdir)/../doc man SOURCEDIR=$(abs_srcdir)/go/doc BUILDDIR=$(objdir)/doc/gccgo/man
+
lang_checks += check-go
lang_checks_parallelized += check-go
check_go_parallelize = 10
@@ -165,6 +154,10 @@ go.install-plugin:
go.install-info: $(DESTDIR)$(infodir)/gccgo.info
+$(DESTDIR)$(infodir)/gccgo.info: doc/gccgo/info/texinfo/gccgo.info installdirs
+ -rm -f $@
+ -$(INSTALL_DATA) $< $@
+
go.install-pdf: doc/gccgo.pdf
@$(NORMAL_INSTALL)
test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)/gcc"
@@ -194,7 +187,7 @@ go.install-html: $(build_htmldir)/go
go.install-man: $(DESTDIR)$(man1dir)/$(GCCGO_INSTALL_NAME)$(man1ext)
-$(DESTDIR)$(man1dir)/$(GCCGO_INSTALL_NAME)$(man1ext): doc/gccgo.1 installdirs
+$(DESTDIR)$(man1dir)/$(GCCGO_INSTALL_NAME)$(man1ext): doc/gccgo/man/man/gccgo.1 installdirs
-rm -f $@
-$(INSTALL_DATA) $< $@
-chmod a-x $@
@@ -214,7 +207,7 @@ go.mostlyclean:
go.clean:
go.distclean:
go.maintainer-clean:
- -rm -f $(docobjdir)/gccgo.1
+ -rm -f doc/doc/gccgo/man/man/gccgo.1
# Stage hooks.