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

Last change on this file since 488 was 488, checked in by rybkin, 15 years ago

See C.L. 383

  • Property svn:eol-style set to native
File size: 4.8 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_local_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake.tmp
12cmt_final_setup_${CONSTITUENT} = $(bin)setup_${CONSTITUENT}.nmake
13#cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_${CONSTITUENT}_setup.nmake
14cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
15
16${CONSTITUENT}_extratags = -tag_add=target_${CONSTITUENT}
17
18!if [if not exist $(bin) mkdir $(bin)] == 0
19!endif
20
21!if "$(QUICK)" == "" || !exist ($(cmt_local_tagfile_${CONSTITUENT}))
22
23!if [$(echo) (constituents.nmake) Rebuilding $(cmt_local_tagfile_${CONSTITUENT})] == 0
24!endif
25!if [cmt -tag=$(tags) $(${CONSTITUENT}_extratags) build tag_makefile >$(cmt_local_tagfile_${CONSTITUENT})] == 0
26!endif
27
28!if [$(echo) (constituents.nmake) Rebuilding $(cmt_final_setup_${CONSTITUENT})] == 0
29!endif
30!if [$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) show setup >$(cmt_local_setup_${CONSTITUENT})] == 0
31!endif
32
33!if exist ($(cmt_final_setup_${CONSTITUENT})) && [ echo n|comp $(cmt_final_setup_${CONSTITUENT}) $(cmt_local_setup_${CONSTITUENT}) >nul 2>&1 ] == 0
34!if [ del $(cmt_local_setup_${CONSTITUENT}) ] == 0
35!endif
36!else
37!if [ move /y $(cmt_local_setup_${CONSTITUENT}) $(cmt_final_setup_${CONSTITUENT}) >nul ] == 0
38!endif
39!endif
40
41!endif
42
43!else
44
45#cmt_local_tagfile_${CONSTITUENT} = $(${PACKAGE}_tag).nmake
46cmt_local_tagfile_${CONSTITUENT} = $(bin)$(${PACKAGE}_tag).nmake
47#cmt_local_setup_${CONSTITUENT} = $(bin)setup.nmake.tmp
48cmt_final_setup_${CONSTITUENT} = $(bin)setup.nmake
49#cmt_final_setup_${CONSTITUENT} = $(bin)${PACKAGE}_setup.nmake
50cmt_local_${CONSTITUENT}_makefile = $(bin)${CONSTITUENT}.nmake
51
52!endif
53
54#!if "$(QUICK)" == ""
55#$(cmt_local_${CONSTITUENT}_makefile) :: $(${CONSTITUENT}_dependencies) $(cmt_local_tagfile_${CONSTITUENT}) dirs
56#!else
57#$(cmt_local_${CONSTITUENT}_makefile) :: $(cmt_local_tagfile_${CONSTITUENT})
58#!endif
59$(cmt_local_${CONSTITUENT}_makefile) : $(cmt_local_tagfile_${CONSTITUENT})
60        $(echo) (constituents.nmake) Building ${CONSTITUENT}.nmake
61        @set include=$(include)
62        @set lib=$(lib)
63        @$(cmtexe) -tag=$(tags) $(${CONSTITUENT}_extratags) build -nmake constituent_makefile -out=$@ ${CONSTITUENT}
64#       $(echo) (constituents.nmake) ${CONSTITUENT}.nmake done
65
66cmt_${CONSTITUENT}_${HASDEPENDENCIES} = 1
67
68!if defined (cmt_${CONSTITUENT}_has_dependencies)
69
70${CONSTITUENT}dependencies : $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs
71        @set include=$(include)
72        @set lib=$(lib)
73        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles dependencies tag=$(tag)
74
75${CONSTITUENT} :: ${CONSTITUENT}dependencies
76!else
77${CONSTITUENT} :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile) dirs
78!endif
79        $(echo) (constituents.nmake) Starting ${CONSTITUENT}
80        @set include=$(include)
81        @set lib=$(lib)
82        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT} tag=$(tag)
83        $(echo) (constituents.nmake) ${CONSTITUENT} done
84
85clean :: ${CONSTITUENT}clean
86
87#${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) ##$(cmt_local_${CONSTITUENT}_makefile)
88${CONSTITUENT}clean :: $(${CONSTITUENT}clean_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
89        $(echo) (constituents.nmake) Starting ${CONSTITUENT}clean
90        @set include=$(include)
91        @set lib=$(lib)
92        @$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)
93        $(echo) (constituents.nmake) ${CONSTITUENT}clean done
94#       @-if exist $(cmt_local_${CONSTITUENT}_makefile) $(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles ${CONSTITUENT}clean tag=$(tag)
95#       $(echo) (constituents.nmake) ${CONSTITUENT}clean done
96
97install :: ${CONSTITUENT}install
98
99${CONSTITUENT}install :: $(${CONSTITUENT}_dependencies) $(cmt_local_${CONSTITUENT}_makefile)
100        $(echo) (constituents.nmake) Starting install ${CONSTITUENT}
101        @set include=$(include)
102        @set lib=$(lib)
103        @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles install tag=$(tag)
104        $(echo) (constituents.nmake) install ${CONSTITUENT} done
105
106uninstall :: ${CONSTITUENT}uninstall
107
108${CONSTITUENT}uninstall :: $(cmt_local_${CONSTITUENT}_makefile)
109        $(echo) (constituents.nmake) Starting uninstall ${CONSTITUENT}
110        @set include=$(include)
111        @set lib=$(lib)
112        @-$(MAKE) /nologo /f $(cmt_local_${CONSTITUENT}_makefile) /$(MAKEFLAGS) bin=$(bin) build_strategy=keep_makefiles uninstall tag=$(tag)
113        $(echo) (constituents.nmake) uninstall ${CONSTITUENT} done
114
115#-- end of constituent ------
Note: See TracBrowser for help on using the repository browser.