Changeset 9028 for trunk/make


Ignore:
Timestamp:
Aug 19, 2002, 5:00:25 PM (23 years ago)
Author:
bird
Message:

New TARGET_MODE: DEPEND

Location:
trunk/make
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/make/process.forwarder.mak

    r8715 r9028  
    1 # $Id: process.forwarder.mak,v 1.4 2002-06-19 02:16:08 bird Exp $
     1# $Id: process.forwarder.mak,v 1.5 2002-08-19 15:00:25 bird Exp $
    22
    33#
     
    2525!endif
    2626
    27 !if "$(TARGET_NAME)" == "" && "$(TARGET_MODE)" != "EMPTY"
     27!if "$(TARGET_NAME)" == "" && "$(TARGET_MODE)" != "EMPTY" && "$(TARGET_MODE)" != "DEPEND"
    2828!error Fatal error: TARGET_NAME is not defined! Should be set in the makefile.
    2929!endif
     
    304304
    305305# -----------------------------------------------------------------------------
    306 # The $(TARGET) rule - For EMPTY targets.
    307 # -----------------------------------------------------------------------------
    308 !if "$(TARGET_MODE)" == "EMPTY"
     306# The $(TARGET) rule - For EMPTY & DEPEND targets.
     307# -----------------------------------------------------------------------------
     308# this doesn't work as we don't have a target name. Hence not needed.
     309#!if "$(TARGET_MODE)" == "EMPTY"
     310#$(TARGET):
     311#    @$(ECHO) .
     312#!endif
     313!if "$(TARGET_MODE)" == "DEPEND"
    309314$(TARGET):
    310315    @$(ECHO) .
  • trunk/make/process.mak

    r8768 r9028  
    1 # $Id: process.mak,v 1.15 2002-06-26 04:45:45 bird Exp $
     1# $Id: process.mak,v 1.16 2002-08-19 15:00:25 bird Exp $
    22
    33#
     
    6565# Dummy/Hub/TopLevel empty makefile. This has no target.
    6666!         if "$(TARGET_MODE)" != "EMPTY"
    67 !          if "$(TARGET_MODE)" != "TESTCASE"
    68 !           ifndef MAKEVER
    69 !            if [$(ECHO) $(CLRERR)Fatal Error: Bad TARGET_MODE="$(TARGET_MODE)". Valid ones are: EXE, DLL, SYS, IFS, VDD, LIB, SYSLIB, IFSLIB, TESTCASE and EMPTY.$(CLRRST)]
     67# Dependency only makefile. (typical for include directories)
     68!          if "$(TARGET_MODE)" != "DEPEND"
     69# Testcase makefile.
     70!           if "$(TARGET_MODE)" != "TESTCASE"
     71# Bad TARGET_MODE complain.
     72!            ifndef MAKEVER
     73!             if [$(ECHO) $(CLRERR)Fatal Error: Bad TARGET_MODE="$(TARGET_MODE)". Valid ones are: EXE, DLL, SYS, IFS, VDD, LIB, SYSLIB, IFSLIB, TESTCASE and EMPTY.$(CLRRST)]
     74!             endif
     75!             error
     76!            else
     77!             error $(CLRERR)Fatal Error: Bad TARGET_MODE="$(TARGET_MODE)". Valid ones are: EXE, DLL, SYS, IFS, VDD, LIB, SYSLIB, IFSLIB, TESTCASE and EMPTY.$(CLRRST)
    7078!            endif
    71 !            error
    72 !           else
    73 !            error $(CLRERR)Fatal Error: Bad TARGET_MODE="$(TARGET_MODE)". Valid ones are: EXE, DLL, SYS, IFS, VDD, LIB, SYSLIB, IFSLIB, TESTCASE and EMPTY.$(CLRRST)
    7479!           endif
    7580!          endif
     
    117122! if "$(TARGET_MODE)" == "EMPTY"
    118123TARGET_EXT  = empty
     124! endif
     125! if "$(TARGET_MODE)" == "DEPEND"
     126TARGET_EXT  = depend
    119127! endif
    120128! if "$(TARGET_MODE)" == "TESTCASE"
     
    925933# The $(TARGET) rule - For EMPTY targets.
    926934# -----------------------------------------------------------------------------
    927 !if "$(TARGET_MODE)" == "EMPTY"
     935# this doesn't work as we don't have a target name. Hence not needed.
     936#!if "$(TARGET_MODE)" == "EMPTY"
    928937#$(TARGET):
    929938#    @$(ECHO) .
     939#!endif
     940!if "$(TARGET_MODE)" == "DEPEND"
     941$(TARGET):
     942    @$(ECHO) .
    930943!endif
    931944
     
    962975# Read Dependencies.
    963976# -----------------------------------------------------------------------------
    964 !if "$(TARGET_MODE)" != "TESTCASE"
     977!if "$(TARGET_MODE)" != "TESTCASE" && "$(TARGET_MODE)" != "DEPEND"
    965978!if "$(TARGET_MODE)" != "EMPTY" && "$(NODEP)" == ""
    966979
Note: See TracChangeset for help on using the changeset viewer.