Make-lang.in (f95.generated-manpages): Remove.
authorJoseph Myers <jsm@polyomino.org.uk>
Sat, 15 May 2004 19:02:24 +0000 (20:02 +0100)
committerJoseph Myers <jsm28@gcc.gnu.org>
Sat, 15 May 2004 19:02:24 +0000 (20:02 +0100)
* Make-lang.in (f95.generated-manpages): Remove.
(f95.srcextra): New.
(f95.info, fortran/gfortran.info, fortran/gfortran.dvi,
f95.maintainer-clean): Generate info and dvi files in objdir/doc.
(f95.dvi): Remove.
(dvi): New.
(f95.install-info): Remove.
(install-info): New.

From-SVN: r81896

gcc/fortran/ChangeLog
gcc/fortran/Make-lang.in

index 00e6be2f6db7423f57523dc4ff65f65102d6a4a0..5b764237a1f09aad23fbcea8eda6f05528204fcd 100644 (file)
@@ -1,3 +1,14 @@
+2004-05-15  Joseph S. Myers  <jsm@polyomino.org.uk>
+
+       * Make-lang.in (f95.generated-manpages): Remove.
+       (f95.srcextra): New.
+       (f95.info, fortran/gfortran.info, fortran/gfortran.dvi,
+       f95.maintainer-clean): Generate info and dvi files in objdir/doc.
+       (f95.dvi): Remove.
+       (dvi): New.
+       (f95.install-info): Remove.
+       (install-info): New.
+
 2004-05-15  Victor Leikehman  <lei@haifasphere.co.il>
 
        * decl.c (add_init_expr_to_sym): Check for variable size arrays.
index 9792275371fc76cb5930db57afc65efced78ae36..85de74bac8ce50ea300950da12f35651564ba4ca 100644 (file)
@@ -132,19 +132,19 @@ f95.all.cross: gfortran-cross$(exeext)
 f95.start.encap: gfortran$(exeext)
 f95.rest.encap:
 
-f95.srcinfo: fortran/gfortran.info
+f95.srcinfo: doc/gfortran.info
        -cp -p $^ $(srcdir)/fortran
 
 f95.tags: force
        cd $(srcdir)/fortran; etags -o TAGS.sub *.c *.h; \
        etags --include TAGS.sub --include ../TAGS.sub
 
-f95.info: fortran/gfortran.info
-f95.dvi: fortran/gfortran.dvi
-f95.generated-manpages:
+f95.info: doc/gfortran.info
+dvi:: doc/gfortran.dvi
 
 f95.man:
 f95.srcman:
+f95.srcextra:
 
 check-f95 : check-gfortran
 lang_checks += check-gfortran
@@ -158,17 +158,15 @@ GFORTRAN_TEXI = \
   $(srcdir)/doc/include/funding.texi \
   $(srcdir)/doc/include/gcc-common.texi
 
-fortran/gfortran.info: $(GFORTRAN_TEXI)
+doc/gfortran.info: $(GFORTRAN_TEXI)
        if [ x$(BUILD_INFO) = xinfo ]; then \
-         rm -f fortran/gfortran.info-*; \
+         rm -f doc/gfortran.info-*; \
          $(MAKEINFO) -I$(srcdir)/doc/include -I$(srcdir)/fortran \
-           -o fortran/gfortran.info $(srcdir)/fortran/gfortran.texi; \
+           -o doc/gfortran.info $(srcdir)/fortran/gfortran.texi; \
        else true; fi
 
-fortran/gfortran.dvi: $(GFORTRAN_TEXI)
-       s=`cd $(srcdir); ${PWD}`; export s; \
-       cd fortran && $(TEXI2DVI) -I $$s/doc/include -I $$s/fortran \
-         $$s/fortran/gfortran.texi
+doc/gfortran.dvi: $(GFORTRAN_TEXI)
+       $(TEXI2DVI) -I $(srcdir)/fortran -I $(abs_docdir)/include -o $@ $<
 
 #\f
 # Install hooks:
@@ -198,23 +196,7 @@ f95.install-common: installdirs
          fi ; \
        fi
 
-# Install the info documentation in $(infodir).
-# Taken from G77 (but then, what is not...)
-f95.install-info: f95.info installdirs
-       if [ -f fortran/gfortran.info ] ; then \
-         rm -f $(DESTDIR)$(infodir)/gfortran.info*; \
-         for f in fortran/gfortran.info*; do \
-             realfile=`echo $$f | sed -e 's|.*/\([^/]*\)$$|\1|'`; \
-             $(INSTALL_DATA) $$f $(DESTDIR)$(infodir)/$$realfile; \
-         done; \
-         chmod a-x $(DESTDIR)$(infodir)/gfortran.info*; \
-       else true; fi
-       @if [ -f fortran/gfortran.info ] ; then \
-         if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
-         echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/gfortran.info"; \
-           install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/gfortran.info || : ; \
-         else : ; fi; \
-       else : ; fi
+install-info:: $(DESTDIR)$(infodir)/gfortran.info
 
 f95.install-man: installdirs
 #TODO: write the gfortran man pages
@@ -243,7 +225,7 @@ f95.distclean:
 
 f95.extraclean:
 f95.maintainer-clean:
-       -rm -f fortran/gfortran.info* fortran/gfortran.*aux
+       -rm -f doc/gfortran.info* fortran/gfortran.*aux
 
 #\f
 # Stage hooks: