Ignore:
Timestamp:
Feb 7, 2013, 11:33:08 AM (12 years ago)
Author:
rybkin
Message:

See C.L. 502

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CMT/HEAD/mgr/fragments/nmake/constituent_lock

    r595 r631  
    22
    33cmt_${CONSTITUENT}_${HASTARGETTAG} = 1
     4cmt_${CONSTITUENT}_${HASDEPENDENCIES} = 1
    45
    5 #--------------------------------------------------------
     6#----------------------------------------
    67
    78!if defined (cmt_${CONSTITUENT}_has_target_tag)
    89
    9 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.nmake
    1010cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.nmake
    11 cmt_local_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake.tmp
    1211cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake
    13 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}_setup.nmake
    1412cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
    1513
    1614${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT}
    1715
    18 #!if [if not exist $(bin) mkdir $(bin)] == 0
    19 #!endif
    20 
    21 #!if "$(QUICK)" == "" || !exist ($(cmt_local_tagfile_${CONSTITUENT}))
    22 
    23 #!if [$(echo) (constituents.nmake) Rebuilding $(cmt_local_tagfile_${CONSTITUENT})] == 0
    24 #!endif
    25 #!if [cmt -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0
    26 #!endif
    27 
    28 #!if [$(echo) (constituents.nmake) Rebuilding $(cmt_final_setup_${CONSTITUENT})] == 0
    29 #!endif
    30 #!if [$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_local_setup_${CONSTITUENT})] == 0
    31 #!endif
    32 
    33 #!if exist ($(cmt_final_setup_${CONSTITUENT})) && [ echo n|comp $(cmt_final_setup_${CONSTITUENT}) $(cmt_local_setup_${CONSTITUENT}) >nul 2>&1 ] == 0
    34 #!if [ del $(cmt_local_setup_${CONSTITUENT}) ] == 0
    35 #!endif
    36 #!else
    37 #!if [ move /y $(cmt_local_setup_${CONSTITUENT}) $(cmt_final_setup_${CONSTITUENT}) >nul ] == 0
    38 #!endif
    39 #!endif
    40 
    41 #!endif
    42 
    4316!else
    4417
    45 #cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).nmake
    4618cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).nmake
    47 #cmt_local_setup_${CONSTITUENT} = $(bin)setup.nmake.tmp
    4819cmt_final_setup_${CONSTITUENT} = $(bin)setup.nmake
    49 #cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.nmake
    5020cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
    5121
    5222!endif
    53 
    54 #!if "$(QUICK)" == ""
    55 #$(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT})
    56 #!else
    57 #$(cmt_local_${CONSTITUENT}_makefile) : $(cmt_local_tagfile_${CONSTITUENT})
    58 #!endif
    5923
    6024!if defined (cmt_${CONSTITUENT}_has_target_tag)
     
    9054!endif
    9155
    92 cmt_${CONSTITUENT}_${HASDEPENDENCIES} = 1
    9356
    9457!if defined (cmt_${CONSTITUENT}_has_dependencies)
     
    11376        $(echo) (constituents.nmake) ${CONSTITUENT} done
    11477
    115 clean :: ${CONSTITUENT}clean
     78clean :: ${CONSTITUENT}clean ;
    11679
    11780${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)
    118         $(echo) (constituents.nmake) Starting ${CONSTITUENT}clean
     81        $(echo) (constituents.nmake) Starting $@
    11982        @set include=$(include)
    12083        @set lib=$(lib)
    121         @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)
    122         $(echo) (constituents.nmake) ${CONSTITUENT}clean done
     84        @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles $@ tag=$(tag)
     85        $(echo) (constituents.nmake) $@ done
    12386#       @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)
    12487
    125 install :: ${CONSTITUENT}install
     88install :: ${CONSTITUENT}install ;
    12689
    12790${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
    128         $(echo) (constituents.nmake) Starting install ${CONSTITUENT}
     91        $(echo) (constituents.nmake) Starting $@
    12992        @set include=$(include)
    13093        @set lib=$(lib)
    131         @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles install tag=$(tag)
    132         $(echo) (constituents.nmake) install ${CONSTITUENT} done
     94        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles install tag=$(tag)
     95        $(echo) (constituents.nmake) $@ done
    13396
    134 uninstall :: ${CONSTITUENT}uninstall
     97uninstall :: ${CONSTITUENT}uninstall ;
    13598
    136 #${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile)
    137 #${CONSTITUENT}uninstall :: $(cmt_local_tagfile_${CONSTITUENT})
    13899${CONSTITUENT}uninstall :: $(${CONSTITUENT}uninstall_dependencies)
    139         $(echo) (constituents.nmake) Starting uninstall ${CONSTITUENT}
     100        $(echo) (constituents.nmake) Starting $@
    140101        @set include=$(include)
    141102        @set lib=$(lib)
     
    144105#       @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
    145106#       @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag)
    146         $(echo) (constituents.nmake) uninstall ${CONSTITUENT} done
     107        $(echo) (constituents.nmake) $@ done
    147108
    148109#-- end of constituent_lock ------
Note: See TracChangeset for help on using the changeset viewer.