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

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

See C.L. 370

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