From: Joseph Myers Date: Sat, 15 May 2004 19:02:24 +0000 (+0100) Subject: Make-lang.in (f95.generated-manpages): Remove. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fc89798458ce731dcc7460fdcf0d67544a2ba0d2;p=gcc.git Make-lang.in (f95.generated-manpages): Remove. * 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 --- diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 00e6be2f6db..5b764237a1f 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,14 @@ +2004-05-15 Joseph S. Myers + + * 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 * decl.c (add_init_expr_to_sym): Check for variable size arrays. diff --git a/gcc/fortran/Make-lang.in b/gcc/fortran/Make-lang.in index 9792275371f..85de74bac8c 100644 --- a/gcc/fortran/Make-lang.in +++ b/gcc/fortran/Make-lang.in @@ -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 $@ $< # # 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 # # Stage hooks: