Ignore:
Timestamp:
Oct 29, 2008, 1:37:51 AM (17 years ago)
Author:
bird
Message:

Merged in current GNU Make code (CVS from 2008-10-28). Ref #55.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/Makefile.DOS.template

    r903 r1993  
    33#
    44# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
    5 # 2004, 2005, 2006 Free Software Foundation, Inc.
     5# 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
    66# This file is part of GNU Make.
    77#
    8 # GNU Make is free software; you can redistribute it and/or modify it under the
    9 # terms of the GNU General Public License as published by the Free Software
    10 # Foundation; either version 2, or (at your option) any later version.
     8# GNU Make is free software; you can redistribute it and/or modify it under
     9# the terms of the GNU General Public License as published by the Free Software
     10# Foundation; either version 3 of the License, or (at your option) any later
     11# version.
    1112#
    1213# GNU Make is distributed in the hope that it will be useful, but WITHOUT ANY
    13 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
    14 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
     14# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
     15# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
     16# details.
    1517#
    1618# You should have received a copy of the GNU General Public License along with
    17 # GNU Make; see the file COPYING.  If not, write to the Free Software
    18 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
     19# this program.  If not, see <http://www.gnu.org/licenses/>.
    1920
    2021SHELL = /bin/sh
     
    8384make_LDADD =      glob/libglob.a
    8485
    85 info_TEXINFOS = make.texinfo
    8686man_MANS =      make.1
    8787
     
    118118INFO_DEPS = make.info
    119119DVIS = make.dvi
    120 TEXINFOS = make.texinfo
     120TEXINFOS = doc/make.texi
     121noinst_TEXINFOS = doc/fdl.texi doc/make-stds.texi
    121122man1dir = $(mandir)/man1
    122123MANS = $(man_MANS)
     124
     125TEXI2HTML = texi2html
     126TEXI2HTML_FLAGS = -split_chapter
    123127
    124128NROFF = nroff
     
    136140
    137141.SUFFIXES:
    138 .SUFFIXES: .c .dvi .info .o .obj .ps .texinfo .tex
     142.SUFFIXES: .c .dvi .info .o .obj .ps .texi .tex .html
    139143
    140144mostlyclean-hdr:
     
    186190        $(LINK) $(make_LDFLAGS) $(make_OBJECTS) $(make_LDADD) $(LIBS)
    187191
    188 make.info: make.texinfo
    189 make.dvi: make.texinfo
     192# Documentation
     193
     194make.info: doc/make.texi
     195make.dvi: doc/make.texi
    190196
    191197
    192198DVIPS = dvips
    193199
    194 .texinfo.info:
     200.texi.info:
    195201        @command.com /c if exist make.info* del make.info*
    196202        @command.com /c if exist make.i* del make.i*
    197         $(MAKEINFO) -I$(srcdir) $< -o ./$@
    198 
    199 .texinfo:
     203        $(MAKEINFO) -I$(srcdir)/doc --no-split $< -o ./$@
     204
     205.texi:
    200206        @command.com /c if exist make.info* del make.info*
    201207        @command.com /c if exist make.i* del make.i*
    202         $(MAKEINFO) -I$(srcdir) $< -o ./$@
    203 
    204 .texinfo.dvi:
    205         TEXINPUTS="$(srcdir);$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)' $(TEXI2DVI) $<
    206 
     208        $(MAKEINFO) -I$(srcdir)/doc --no-split $< -o ./$@
     209
     210.texi.dvi:
     211        TEXINPUTS="$(srcdir)/doc;$$TEXINPUTS"    MAKEINFO='$(MAKEINFO) -I $(srcdir)/doc' $(TEXI2DVI) $<
    207212
    208213.dvi.ps:
    209214        $(DVIPS) $< -o $@
     215
     216# Other documentation formats
     217
     218html: make_1.html
     219
     220make_1.html: $(TEXINFOS) $(noinst_TEXINFOS)
     221        $(TEXI2HTML) $(TEXI2HTML_FLAGS) $(srcdir)/doc/make.texi
    210222
    211223install-info-am: $(INFO_DEPS)
    212224        @$(NORMAL_INSTALL)
    213225        $(mkinstalldirs) $(DESTDIR)$(infodir)
    214         @for file in $(INFO_DEPS) make.i; do    d=$(srcdir);    for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]`; do      if test -f $$d/$$ifile; then        echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; else : ; fi;    done;  done
     226        @for file in $(INFO_DEPS); do    d=$(srcdir);    for ifile in `cd $$d && echo $$file`; do      if test -f $$d/$$ifile; then        echo " $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile"; $(INSTALL_DATA) $$d/$$ifile $(DESTDIR)$(infodir)/$$ifile; else : ; fi;    done;  done
    215227        @$(POST_INSTALL)
    216228        @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then    for file in $(INFO_DEPS); do      echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file";     install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$$file || :;   done;  else : ; fi
     
    220232        @if $(SHELL) -c 'install-info --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then    ii=yes;  else ii=; fi;  for file in $(INFO_DEPS); do    test -z $ii || install-info --info-dir=$(DESTDIR)$(infodir) --remove $$file;  done
    221233        $(NORMAL_UNINSTALL)
    222         for file in $(INFO_DEPS) make.i; do    (cd $(DESTDIR)$(infodir) && rm -f $$file $$file-[0-9] $$file-[0-9][0-9] $$file[0-9] $$file[0-9][0-9]);  done
     234        for file in $(INFO_DEPS); do (cd $(DESTDIR)$(infodir) && rm -f $$file);  done
    223235
    224236dist-info: $(INFO_DEPS)
     
    235247
    236248maintainer-clean-aminfo:
    237         for i in $(INFO_DEPS) make.i; do rm -f `eval echo $$i*`; done
     249        for i in $(INFO_DEPS); do rm -f $$i*; done
    238250
    239251install-man1:
     
    455467install-exec install-data install uninstall all installdirs \
    456468mostlyclean-generic distclean-generic clean-generic \
    457 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
     469maintainer-clean-generic clean mostlyclean distclean maintainer-clean \
     470html
    458471
    459472
Note: See TracChangeset for help on using the changeset viewer.