]> granicus.if.org Git - curl/commitdiff
Changed test for -u switch in order to enable other wmake switches.
authorGuenter Knauf <lists@gknw.net>
Tue, 10 Aug 2010 13:25:48 +0000 (15:25 +0200)
committerGuenter Knauf <lists@gknw.net>
Tue, 10 Aug 2010 13:32:56 +0000 (15:32 +0200)
The var %MAKEFLAGS is only set in 3 cases: if set as environment
var or as macro definition from commandline, and either with the
-u or -ms switch. Since all these cases are unlikely for the average
user it should be safe to only test if %MAKEFLAGS is defined; this
has the benefit that now all other switches can be used again in
addition to the -u which was formerly not possible.

lib/Makefile.Watcom
src/Makefile.Watcom

index 4807972f1b73df7cec7823307ee8c56a217c20e0..07f2a2d9a72e3d3b0773964d8f40fb731fb802e9 100644 (file)
@@ -80,7 +80,7 @@ LINK_ARG = $(OBJ_BASE)\dyn\wlink.arg
 LIB_ARG  = $(OBJ_BASE)\stat\wlib.arg
 
 # In order to process Makefile.inc wmake must be called with -u switch!
-!ifneq __MAKEOPTS__ -u
+!ifndef %MAKEFLAGS
 !error You MUST call wmake with the -u switch!
 !else
 !include Makefile.inc
index 9b3479238b0e3f31009d9d83567e9f4a3d2dbf12..9fa3ab4a0c1fc12618de560575401201332b128b 100644 (file)
@@ -67,7 +67,7 @@ OBJ_DIR  = WC_Win32.obj
 LINK_ARG = $(OBJ_DIR)\wlink.arg
 
 # In order to process Makefile.inc wmake must be called with -u switch!
-!ifneq __MAKEOPTS__ -u
+!ifndef %MAKEFLAGS
 !error You MUST call wmake with the -u switch!
 !else
 !include Makefile.inc