source: CMT/v1r25-branch/mgr/fragments/nmake/constituent @ 666

Last change on this file since 666 was 666, checked in by rybkin, 10 years ago

merge -r 664:665 HEAD

File size: 5.3 KB
RevLine 
[6]1#-- start of constituent ------
2
3cmt_${CONSTITUENT}_${HASTARGETTAG} = 1
[641]4cmt_${CONSTITUENT}_${HASDEPENDENCIES} = 1
[6]5
[641]6#----------------------------------------
[6]7
8!if defined (cmt_${CONSTITUENT}_has_target_tag)
9
[469]10cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag)_${CONSTITUENT}.nmake
[487]11cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake
[6]12cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
13
14${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT}
15
16!else
17
[469]18cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).nmake
[487]19cmt_final_setup_${CONSTITUENT} = $(bin)setup.nmake
[6]20cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
21
22!endif
23
[576]24!if defined (cmt_${CONSTITUENT}_has_target_tag)
25
[547]26!if "$(QUICK)" == "" || !exist ($(cmt_local_${CONSTITUENT}_makefile)) || !exist ($(cmt_local_tagfile_${CONSTITUENT})) || !exist ($(cmt_final_setup_${CONSTITUENT}))
[595]27$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) dirs
[445]28        $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake
[6]29        @set include=$(include)
30        @set lib=$(lib)
[547]31        @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$@ ${CONSTITUENT}
32!else
[595]33$(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(use_requirements)
34        @set include=$(include)
35        @set lib=$(lib)
36        @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")
[547]37!endif
[6]38
[576]39!else
40
41!if "$(QUICK)" == "" || !exist ($(cmt_local_${CONSTITUENT}_makefile)) || !exist ($(cmt_local_tagfile_${CONSTITUENT})) || !exist ($(cmt_final_setup_${CONSTITUENT}))
[595]42$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) dirs
[576]43        $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake
44        @set include=$(include)
45        @set lib=$(lib)
46        @$(cmtexe) -f=$(bin)${CONSTITUENT}.in -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -without_cmt -out=$@ ${CONSTITUENT}
47!else
[595]48$(cmt_local_${CONSTITUENT}_makefile) : $(${CONSTITUENT}_dependencies) $(use_requirements) $(bin)${CONSTITUENT}.in
49        @set include=$(include)
50        @set lib=$(lib)
51        @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")
[576]52!endif
53
54!endif
55
[488]56
57!if defined (cmt_${CONSTITUENT}_has_dependencies)
58
59${CONSTITUENT}dependencies : $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs
60        @set include=$(include)
61        @set lib=$(lib)
62        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles dependencies tag=$(tag)
63
64${CONSTITUENT} :: ${CONSTITUENT}dependencies
65!else
[487]66${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs
[488]67!endif
[445]68        $(echo) (constituents.nmake) Starting ${CONSTITUENT}
[6]69        @set include=$(include)
70        @set lib=$(lib)
[473]71        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT} tag=$(tag)
[445]72        $(echo) (constituents.nmake) ${CONSTITUENT} done
[6]73
[641]74clean :: ${CONSTITUENT}clean ;
[6]75
[492]76${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)
[641]77        $(echo) (constituents.nmake) Starting $@
[6]78        @set include=$(include)
79        @set lib=$(lib)
[641]80        @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles $@ tag=$(tag)
81        $(echo) (constituents.nmake) $@ done
[492]82#       @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)
[6]83
[641]84install :: ${CONSTITUENT}install ;
[6]85
86${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
[641]87        $(echo) (constituents.nmake) Starting $@
[6]88        @set include=$(include)
89        @set lib=$(lib)
[641]90        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles install tag=$(tag)
91        $(echo) (constituents.nmake) $@ done
[6]92
[641]93uninstall :: ${CONSTITUENT}uninstall ;
[6]94
[595]95${CONSTITUENT}uninstall :: $(${CONSTITUENT}uninstall_dependencies)
[641]96        $(echo) (constituents.nmake) Starting $@
[6]97        @set include=$(include)
98        @set lib=$(lib)
[595]99        @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag)
100#       @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_config -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
[547]101#       @if not exist $(cmt_local_${CONSTITUENT}_makefile) $(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$(cmt_local_${CONSTITUENT}_makefile) ${CONSTITUENT}
[595]102#       @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag)
[641]103        $(echo) (constituents.nmake) $@ done
[6]104
105#-- end of constituent ------
Note: See TracBrowser for help on using the repository browser.