Ignore:
Timestamp:
Dec 9, 2011, 1:45:45 PM (12 years ago)
Author:
rybkin
Message:

See C.L. 472

File:
1 edited

Legend:

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

    r576 r595  
    1616${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT}
    1717
    18 !if [if not exist $(bin) mkdir $(bin)] == 0
    19 !endif
     18#!if [if not exist $(bin) mkdir $(bin)] == 0
     19#!endif
    2020
    2121#!if "$(QUICK)" == "" || !exist ($(cmt_local_tagfile_${CONSTITUENT}))
     
    6161
    6262!if "$(QUICK)" == "" || !exist ($(cmt_local_${CONSTITUENT}_makefile)) || !exist ($(cmt_local_tagfile_${CONSTITUENT})) || !exist ($(cmt_final_setup_${CONSTITUENT}))
    63 $(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies)
     63$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) dirs
    6464        $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake
    6565        @set include=$(include)
    6666        @set lib=$(lib)
    6767        @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$@ ${CONSTITUENT}
    68 #       @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$@ ${CONSTITUENT}
    69 #       $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done
    7068!else
    71 $(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) ;
     69$(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(use_requirements)
     70        @set include=$(include)
     71        @set lib=$(lib)
     72        @if not "$?"=="$(${CONSTITUENT}_dependencies)" ((if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) Rebuilding ${CONSTITUENT}.nmake") & $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$@ ${CONSTITUENT}) else (if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) ${CONSTITUENT}.nmake up-to-date")
    7273!endif
    7374
     
    7576
    7677!if "$(QUICK)" == "" || !exist ($(cmt_local_${CONSTITUENT}_makefile)) || !exist ($(cmt_local_tagfile_${CONSTITUENT})) || !exist ($(cmt_final_setup_${CONSTITUENT}))
    77 $(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies)
     78$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) dirs
    7879        $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake
    7980        @set include=$(include)
     
    8182        @$(cmtexe) -f=$(bin)${CONSTITUENT}.in -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -without_cmt -out=$@ ${CONSTITUENT}
    8283!else
    83 $(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) ;
     84$(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(use_requirements) $(bin)${CONSTITUENT}.in
     85        @set include=$(include)
     86        @set lib=$(lib)
     87        @if not "$?"=="$(${CONSTITUENT}_dependencies)" ((if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) Rebuilding ${CONSTITUENT}.nmake") & $(cmtexe) -f=$(bin)${CONSTITUENT}.in -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -without_cmt -out=$@ ${CONSTITUENT}) else (if not "$(cmtmsg)"=="" @echo "$(CMTMSGPREFIX)" "(constituents.nmake) ${CONSTITUENT}.nmake up-to-date")
    8488!endif
    8589
     
    128132#${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile)
    129133#${CONSTITUENT}uninstall :: $(cmt_local_tagfile_${CONSTITUENT})
    130 ${CONSTITUENT}uninstall ::
     134${CONSTITUENT}uninstall :: $(${CONSTITUENT}uninstall_dependencies)
    131135        $(echo) (constituents.nmake) Starting uninstall ${CONSTITUENT}
    132136        @set include=$(include)
    133137        @set lib=$(lib)
    134         @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
     138        @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag)
     139#       @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
    135140#       @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
    136         @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag)
     141#       @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag)
    137142        $(echo) (constituents.nmake) uninstall ${CONSTITUENT} done
    138143
Note: See TracChangeset for help on using the changeset viewer.