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

Last change on this file since 600 was 600, checked in by rybkin, 12 years ago

See C.L. 477

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