source: CMT/HEAD/mgr/fragments/nmake/constituent @ 445

Last change on this file since 445 was 445, checked in by rybkin, 16 years ago

See C.L. 349

  • Property svn:eol-style set to native
File size: 3.0 KB
RevLine 
[6]1#-- start of constituent ------
2
3cmt_${CONSTITUENT}_${HASTARGETTAG} = 1
4
5#--------------------------------------------------------
6
7!if defined (cmt_${CONSTITUENT}_has_target_tag)
8
9cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag)_${CONSTITUENT}.nmake
10cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}_setup.nmake
11cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
12
13${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT}
14
15!if [if not exist $(bin) mkdir $(bin)] == 0
16!endif
17
18!if [cmt -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0
19!endif
20
21!if [$(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_final_setup_${CONSTITUENT})] == 0
22!endif
23
24!else
25
26cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).nmake
27cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.nmake
28cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
29
30!endif
31
32$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) dirs
[445]33        $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake
[6]34        @set include=$(include)
35        @set lib=$(lib)
36        @$(cmtexe) -quiet -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile ${CONSTITUENT}
37        @move ${CONSTITUENT}.nmake $(bin)
[445]38        $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done
[6]39
40${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
[445]41        $(echo) (constituents.nmake) Starting ${CONSTITUENT}
[6]42        @set include=$(include)
43        @set lib=$(lib)
[445]44        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) build_strategy=keep_makefiles ${CONSTITUENT} tag=$(tag)
45        $(echo) (constituents.nmake) ${CONSTITUENT} done
[6]46
47clean :: ${CONSTITUENT}clean
48
49${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)
[445]50        $(echo) (constituents.nmake) Starting ${CONSTITUENT}clean
[6]51        @set include=$(include)
52        @set lib=$(lib)
[445]53        @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)
54        $(echo) (constituents.nmake) ${CONSTITUENT}clean done
[6]55
56install :: ${CONSTITUENT}install
57
58${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
[445]59        $(echo) (constituents.nmake) Starting install ${CONSTITUENT}
[6]60        @set include=$(include)
61        @set lib=$(lib)
[445]62        @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) build_strategy=keep_makefiles install tag=$(tag)
63        $(echo) (constituents.nmake) install ${CONSTITUENT} done
[6]64
65uninstall :: ${CONSTITUENT}uninstall
66
67${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile)
[445]68        $(echo) (constituents.nmake) Starting uninstall ${CONSTITUENT}"
[6]69        @set include=$(include)
70        @set lib=$(lib)
[445]71        @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) build_strategy=keep_makefiles uninstall tag=$(tag)
72        $(echo) (constituents.nmake) uninstall ${CONSTITUENT} done
[6]73
74#-- end of constituent ------
Note: See TracBrowser for help on using the repository browser.