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/configure.bat

    • Property svn:eol-style changed from native to CRLF
    r503 r1993  
     1<<<<<<< .working
    12@echo off
    23rem Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
     
    6162:End
    6263set XRSC=
     64=======
     65@echo off
     66rem Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
     67rem 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
     68rem This file is part of GNU Make.
     69rem
     70rem GNU Make is free software; you can redistribute it and/or modify it under
     71rem the terms of the GNU General Public License as published by the Free
     72rem Software Foundation; either version 3 of the License, or (at your option)
     73rem any later version.
     74rem
     75rem GNU Make is distributed in the hope that it will be useful, but WITHOUT
     76rem ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
     77rem FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for.
     78rem more details.
     79rem
     80rem You should have received a copy of the GNU General Public License along
     81rem with this program.  If not, see <http://www.gnu.org/licenses/>.
     82
     83echo Configuring MAKE for DJGPP
     84
     85rem The SmallEnv trick protects against too small environment block,
     86rem in which case the values will be truncated and the whole thing
     87rem goes awry.  COMMAND.COM will say "Out of environment space", but
     88rem many people don't care, so we force them to care by refusing to go.
     89
     90rem Where is the srcdir?
     91set XSRC=.
     92if not "%XSRC%"=="." goto SmallEnv
     93if "%1%"=="" goto SrcDone
     94set XSRC=%1
     95if not "%XSRC%"=="%1" goto SmallEnv
     96
     97:SrcDone
     98
     99update %XSRC%/configh.dos ./config.h
     100
     101rem Do they have Make?
     102redir -o junk.$$$ -eo make -n -f NUL
     103rem REDIR will return 1 if it cannot run Make.
     104rem If it can run Make, it will usually return 2,
     105rem but 0 is also OK with us.
     106if errorlevel 2 goto MakeOk
     107if not errorlevel 1 goto MakeOk
     108if exist junk.$$$ del junk.$$$
     109echo No Make program found--use DOSBUILD.BAT to build Make.
     110goto End
     111
     112rem They do have Make.  Generate the Makefile.
     113
     114:MakeOk
     115del junk.$$$
     116update %XSRC%/Makefile.DOS ./Makefile
     117echo Done.
     118if not "%XSRC%"=="." echo Invoke Make thus: "make srcdir=%XSRC%"
     119goto End
     120
     121:SmallEnv
     122echo Your environment is too small.  Please enlarge it and run me again.
     123
     124:End
     125set XRSC=
     126>>>>>>> .merge-right.r1992
Note: See TracChangeset for help on using the changeset viewer.