On BSD, realpath(3) doesn't fail if the target doesn't exist, so test
[make.git] / subproc.bat
blobb4ef9c8a7e7fa5556c93627c3c08c855192d3cc6
1 @echo off\r
2 rem Copyright (C) 1996-2012 Free Software Foundation, Inc.\r
3 rem This file is part of GNU Make.\r
4 rem\r
5 rem GNU Make is free software; you can redistribute it and/or modify it under\r
6 rem the terms of the GNU General Public License as published by the Free\r
7 rem Software Foundation; either version 3 of the License, or (at your option)\r
8 rem any later version.\r
9 rem\r
10 rem GNU Make is distributed in the hope that it will be useful, but WITHOUT\r
11 rem ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
12 rem FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for.\r
13 rem more details.\r
14 rem\r
15 rem You should have received a copy of the GNU General Public License along\r
16 rem with this program.  If not, see <http://www.gnu.org/licenses/>.\r
18 cd w32\subproc\r
19 set MAKE=%2\r
20 set MAKEFILE=%1\r
21 if x%2 == x set MAKE=nmake\r
22 %MAKE% /f %MAKEFILE%\r
23 cd ..\..\r