source: CMT/HEAD/mgr/fragments/nmake/package @ 652

Last change on this file since 652 was 652, checked in by rybkin, 11 years ago

See C.L. 511

File size: 10.3 KB
Line 
1
2cmt_${PACKAGE}_${ISINCLUDED} = 1
3cmt_${PACKAGE}_${ISLOCAL} = 1
4
5${PACKAGE}FullName=${PACKAGEFULLNAME}
6${PACKAGE}MgrPath=${PACKAGEMGRPATH}
7
8!if "$(LOG_LOCATION)" != ""
9!if "$(cmt_${PACKAGE}_is_included)" != ""
10!if "$(cmt_${PACKAGE}_is_local)" != ""
11${PACKAGE}OutErr = >>$(LOG_LOCATION)\$(${PACKAGE}FullName)$(LOG_SUFFIX) 2>&1
12!else
13!if "$(BCAST_GLOBAL)" != ""
14${PACKAGE}OutErr = >>$(LOG_LOCATION)\$(${PACKAGE}FullName)$(LOG_SUFFIX) 2>&1
15!endif
16!endif
17!endif
18!endif
19
20!if "$(BCAST_ONLY)" == ""
21${PACKAGE} : ${DEPENDENCIES} $(${PACKAGE}MgrPath)\NMake
22!else
23${PACKAGE} : $(${PACKAGE}MgrPath)\NMake
24!endif
25!if "$(cmt_${PACKAGE}_is_included)" != ""
26!if "$(cmt_${PACKAGE}_is_local)" != ""
27        @echo "#--------------------------------------------------------------" \
28          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
29          && echo "#--------------------------------------------------------------"
30!if "$(LOG_LOCATION)" != ""
31        $(silent) type nul > $(LOG_LOCATION)\$(${PACKAGE}FullName)$(LOG_SUFFIX)
32        @( echo "#--------------------------------------------------------------" \
33          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
34          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
35!endif
36!if "$(NO_ALL_GROUPS)" != ""
37        $(silent) cd /d $(${PACKAGE}MgrPath) && \
38          ( $(BCAST_CMD) $(Package_failure_handler) ) \
39          $(${PACKAGE}OutErr)
40!else
41        $(silent) cd /d $(${PACKAGE}MgrPath) && \
42          ( $(BCAST_CMD) all $(Package_failure_handler) ) \
43          $(${PACKAGE}OutErr)
44        $(silent) cd /d $(${PACKAGE}MgrPath) && \
45          for /F "usebackq" %%g in (`$(cmtexe) show groups`) do \
46            $(silent)( $(Cmt_actions_handler) \
47            ( $(BCAST_CMD) %%g $(Package_failure_handler) ) ) \
48          $(${PACKAGE}OutErr)
49!endif
50!else
51!if "$(BCAST_GLOBAL)" != ""
52        @echo "#--------------------------------------------------------------" \
53          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
54          && echo "#--------------------------------------------------------------"
55!if "$(LOG_LOCATION)" != ""
56        $(silent) type nul > $(LOG_LOCATION)\$(${PACKAGE}FullName)$(LOG_SUFFIX)
57        @( echo "#--------------------------------------------------------------" \
58          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
59          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
60!endif
61!if "$(NO_ALL_GROUPS)" != ""
62        $(silent) cd /d $(${PACKAGE}MgrPath) && \
63          ( $(BCAST_CMD) $(Package_failure_handler) ) \
64          $(${PACKAGE}OutErr)
65!else
66        $(silent) cd /d $(${PACKAGE}MgrPath) && \
67          ( $(BCAST_CMD) all $(Package_failure_handler) ) \
68          $(${PACKAGE}OutErr)
69        $(silent) cd /d $(${PACKAGE}MgrPath) && \
70          for /F "usebackq" %%g in (`$(cmtexe) show groups`) do \
71            $(silent)( $(Cmt_actions_handler) \
72            ( $(BCAST_CMD) %%g $(Package_failure_handler) ) ) \
73          $(${PACKAGE}OutErr)
74!endif
75!else
76       
77!endif
78!endif
79!else
80       
81!endif
82
83$(${PACKAGE}MgrPath)\NMake :
84!if "$(cmt_${PACKAGE}_is_included)" != ""
85!if "$(cmt_${PACKAGE}_is_local)" != ""
86        $(echo) configuring ${PACKAGE}
87        $(silent) cd /d $(${PACKAGE}MgrPath) && $(cmtexe) config
88!else
89!if "$(BCAST_GLOBAL)" != ""
90        $(echo) configuring ${PACKAGE}
91        $(silent) cd /d $(${PACKAGE}MgrPath) && $(cmtexe) config
92!else
93       
94!endif
95!endif
96!else
97       
98!endif
99
100!if "$(BCAST_ONLY)" == ""
101all :: ${PACKAGE}
102clean : ${PACKAGE}clean
103binclean : ${PACKAGE}binclean
104uninstall : ${PACKAGE}uninstall
105check : ${PACKAGE}check
106!endif
107
108${PACKAGE}clean : $(${PACKAGE}MgrPath)\NMake
109!if "$(cmt_${PACKAGE}_is_included)" != ""
110!if "$(cmt_${PACKAGE}_is_local)" != ""
111        @echo "#--------------------------------------------------------------" \
112          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) clean] in $(${PACKAGE}MgrPath)" \
113          && echo "#--------------------------------------------------------------"
114!if "$(LOG_LOCATION)" != ""
115        @( echo "#--------------------------------------------------------------" \
116          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) clean] in $(${PACKAGE}MgrPath)" \
117          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
118!endif
119        $(silent) cd /d $(${PACKAGE}MgrPath) && \
120          ( $(BCAST_CMD) clean $(Package_failure_handler) ) \
121          $(${PACKAGE}OutErr)
122!else
123!if "$(BCAST_GLOBAL)" != ""
124        @echo "#--------------------------------------------------------------" \
125          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) clean] in $(${PACKAGE}MgrPath)" \
126          && echo "#--------------------------------------------------------------"
127!if "$(LOG_LOCATION)" != ""
128        @( echo "#--------------------------------------------------------------" \
129          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) clean] in $(${PACKAGE}MgrPath)" \
130          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
131!endif
132        $(silent) cd /d $(${PACKAGE}MgrPath) && \
133          ( $(BCAST_CMD) clean $(Package_failure_handler) ) \
134          $(${PACKAGE}OutErr)
135!else
136       
137!endif
138!endif
139!else
140       
141!endif
142
143${PACKAGE}binclean : $(${PACKAGE}MgrPath)\NMake
144!if "$(cmt_${PACKAGE}_is_included)" != ""
145!if "$(cmt_${PACKAGE}_is_local)" != ""
146        @echo "#--------------------------------------------------------------" \
147          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) binclean] in $(${PACKAGE}MgrPath)" \
148          && echo "#--------------------------------------------------------------"
149!if "$(LOG_LOCATION)" != ""
150        @( echo "#--------------------------------------------------------------" \
151          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) binclean] in $(${PACKAGE}MgrPath)" \
152          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
153!endif
154        $(silent) cd /d $(${PACKAGE}MgrPath) && \
155          ( $(BCAST_CMD) binclean $(Package_failure_handler) ) \
156          $(${PACKAGE}OutErr)
157!else
158!if "$(BCAST_GLOBAL)" != ""
159        @echo "#--------------------------------------------------------------" \
160          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) binclean] in $(${PACKAGE}MgrPath)" \
161          && echo "#--------------------------------------------------------------"
162!if "$(LOG_LOCATION)" != ""
163        @( echo "#--------------------------------------------------------------" \
164          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) binclean] in $(${PACKAGE}MgrPath)" \
165          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
166!endif
167        $(silent) cd /d $(${PACKAGE}MgrPath) && \
168          ( $(BCAST_CMD) binclean $(Package_failure_handler) ) \
169          $(${PACKAGE}OutErr)
170!else
171       
172!endif
173!endif
174!else
175       
176!endif
177
178${PACKAGE}uninstall : $(${PACKAGE}MgrPath)\NMake
179!if "$(cmt_${PACKAGE}_is_included)" != ""
180!if "$(cmt_${PACKAGE}_is_local)" != ""
181        @echo "#--------------------------------------------------------------" \
182          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) uninstall] in $(${PACKAGE}MgrPath)" \
183          && echo "#--------------------------------------------------------------"
184!if "$(LOG_LOCATION)" != ""
185        @( echo "#--------------------------------------------------------------" \
186          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) uninstall] in $(${PACKAGE}MgrPath)" \
187          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
188!endif
189        $(silent) cd /d $(${PACKAGE}MgrPath) && \
190          ( $(BCAST_CMD) uninstall $(Package_failure_handler) ) \
191          $(${PACKAGE}OutErr)
192!else
193!if "$(BCAST_GLOBAL)" != ""
194        @echo "#--------------------------------------------------------------" \
195          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) uninstall] in $(${PACKAGE}MgrPath)" \
196          && echo "#--------------------------------------------------------------"
197!if "$(LOG_LOCATION)" != ""
198        @( echo "#--------------------------------------------------------------" \
199          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) uninstall] in $(${PACKAGE}MgrPath)" \
200          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
201!endif
202        $(silent) cd /d $(${PACKAGE}MgrPath) && \
203          ( $(BCAST_CMD) uninstall $(Package_failure_handler) ) \
204          $(${PACKAGE}OutErr)
205!else
206       
207!endif
208!endif
209!else
210       
211!endif
212
213${PACKAGE}check : $(${PACKAGE}MgrPath)\NMake
214!if "$(cmt_${PACKAGE}_is_included)" != ""
215!if "$(cmt_${PACKAGE}_is_local)" != ""
216        @echo "#--------------------------------------------------------------" \
217          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) check] in $(${PACKAGE}MgrPath)" \
218          && echo "#--------------------------------------------------------------"
219!if "$(LOG_LOCATION)" != ""
220        @( echo "#--------------------------------------------------------------" \
221          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) check] in $(${PACKAGE}MgrPath)" \
222          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
223!endif
224        $(silent) cd /d $(${PACKAGE}MgrPath) && \
225          ( $(BCAST_CMD) check $(Package_failure_handler) ) \
226          $(${PACKAGE}OutErr)
227!else
228!if "$(BCAST_GLOBAL)" != ""
229        @echo "#--------------------------------------------------------------" \
230          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) check] in $(${PACKAGE}MgrPath)" \
231          && echo "#--------------------------------------------------------------"
232!if "$(LOG_LOCATION)" != ""
233        @( echo "#--------------------------------------------------------------" \
234          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) check] in $(${PACKAGE}MgrPath)" \
235          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
236!endif
237        $(silent) cd /d $(${PACKAGE}MgrPath) && \
238          ( $(BCAST_CMD) check $(Package_failure_handler) ) \
239          $(${PACKAGE}OutErr)
240!else
241       
242!endif
243!endif
244!else
245       
246!endif
247
248${PACKAGE} ${PACKAGE}clean ${PACKAGE}binclean ${PACKAGE}uninstall ${PACKAGE}check : FORCE
Note: See TracBrowser for help on using the repository browser.