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

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

See C.L. 374

  • Property svn:eol-style set to native
File size: 3.2 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 "$(QUICK)" == ""
20
21!if [cmt -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0
22!endif
23
24!if [$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_final_setup_${CONSTITUENT})] == 0
25!endif
26
27!endif
28
29!else
30
31#cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).nmake
32cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).nmake
33cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.nmake
34cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
35
36!endif
37
38!if "$(QUICK)" == ""
39$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) dirs
40!else
41$(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT})
42!endif
43        $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake
44        @set include=$(include)
45        @set lib=$(lib)
46        @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$@ ${CONSTITUENT}
47        $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done
48
49${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
50        $(echo) (constituents.nmake) Starting ${CONSTITUENT}
51        @set include=$(include)
52        @set lib=$(lib)
53        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT} tag=$(tag)
54        $(echo) (constituents.nmake) ${CONSTITUENT} done
55
56clean :: ${CONSTITUENT}clean
57
58${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)
59        $(echo) (constituents.nmake) Starting ${CONSTITUENT}clean
60        @set include=$(include)
61        @set lib=$(lib)
62        @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)
63        $(echo) (constituents.nmake) ${CONSTITUENT}clean done
64
65install :: ${CONSTITUENT}install
66
67${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
68        $(echo) (constituents.nmake) Starting install ${CONSTITUENT}
69        @set include=$(include)
70        @set lib=$(lib)
71        @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles install tag=$(tag)
72        $(echo) (constituents.nmake) install ${CONSTITUENT} done
73
74uninstall :: ${CONSTITUENT}uninstall
75
76${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile)
77        $(echo) (constituents.nmake) Starting uninstall ${CONSTITUENT}"
78        @set include=$(include)
79        @set lib=$(lib)
80        @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag)
81        $(echo) (constituents.nmake) uninstall ${CONSTITUENT} done
82
83#-- end of constituent ------
Note: See TracBrowser for help on using the repository browser.