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

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

See C.L. 476

File size: 6.7 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) && $(BCAST_CMD) $(${PACKAGE}OutErr)
34!else
35        $(silent) cd /d $(${PACKAGE}MgrPath) && \
36          $(BCAST_CMD) all $(${PACKAGE}OutErr) \
37          $(Package_failure_handler) 
38        $(silent) cd /d $(${PACKAGE}MgrPath) && \
39          for /F "usebackq" %%g in (`$(cmtexe) show groups`) do \
40            $(silent)( ($(Cmt_actions_handler) \
41            $(BCAST_CMD) %%g $(${PACKAGE}OutErr))  \
42            $(Package_failure_handler) )
43!endif
44!else
45!if "$(BCAST_GLOBAL)" != ""
46        @echo "#--------------------------------------------------------------" \
47          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
48          && echo "#--------------------------------------------------------------"
49!if "$(LOG_LOCATION)" != ""
50        $(silent) type nul > $(LOG_LOCATION)\$(${PACKAGE}FullName)$(LOG_SUFFIX)
51        @( echo "#--------------------------------------------------------------" \
52          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
53          && echo "#--------------------------------------------------------------" ) $(${PACKAGE}OutErr)
54!endif
55!if "$(NO_ALL_GROUPS)" != ""
56        $(silent) cd /d $(${PACKAGE}MgrPath) && $(BCAST_CMD) $(${PACKAGE}OutErr)
57!else
58        $(silent) cd /d $(${PACKAGE}MgrPath) && \
59          $(BCAST_CMD) all $(${PACKAGE}OutErr) \
60          $(Package_failure_handler) 
61        $(silent) cd /d $(${PACKAGE}MgrPath) && \
62          for /F "usebackq" %%g in (`$(cmtexe) show groups`) do \
63            $(silent)( ($(Cmt_actions_handler) \
64            $(BCAST_CMD) %%g $(${PACKAGE}OutErr))  \
65            $(Package_failure_handler) )
66!endif
67!else
68       
69!endif
70!endif
71
72$(${PACKAGE}MgrPath)\NMake :
73!if "$(cmt_${PACKAGE}_is_local)" != ""
74        $(echo) configuring ${PACKAGE}
75        $(silent) cd /d $(${PACKAGE}MgrPath) && $(cmtexe) config
76!else
77!if "$(BCAST_GLOBAL)" != ""
78        $(echo) configuring ${PACKAGE}
79        $(silent) cd /d $(${PACKAGE}MgrPath) && $(cmtexe) config
80!else
81       
82!endif
83!endif
84
85!if "$(BCAST_ONLY)" == ""
86all :: ${PACKAGE}
87clean : ${PACKAGE}clean
88binclean : ${PACKAGE}binclean
89uninstall : ${PACKAGE}uninstall
90check : ${PACKAGE}check
91!endif
92
93${PACKAGE}clean : $(${PACKAGE}MgrPath)\NMake
94!if "$(cmt_${PACKAGE}_is_local)" != ""
95        @echo "#--------------------------------------------------------------" \
96          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) clean] in $(${PACKAGE}MgrPath)" \
97          && echo "#--------------------------------------------------------------"
98        $(silent) cd /d $(${PACKAGE}MgrPath) && $(BCAST_CMD) clean
99!else
100!if "$(BCAST_GLOBAL)" != ""
101        @echo "#--------------------------------------------------------------" \
102          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) clean] in $(${PACKAGE}MgrPath)" \
103          && echo "#--------------------------------------------------------------"
104        $(silent) cd /d $(${PACKAGE}MgrPath) && $(BCAST_CMD) clean
105!else
106       
107!endif
108!endif
109
110${PACKAGE}binclean : $(${PACKAGE}MgrPath)\NMake
111!if "$(cmt_${PACKAGE}_is_local)" != ""
112        @echo "#--------------------------------------------------------------" \
113          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) binclean] in $(${PACKAGE}MgrPath)" \
114          && echo "#--------------------------------------------------------------"
115        $(silent) cd /d $(${PACKAGE}MgrPath) && $(BCAST_CMD) binclean
116!else
117!if "$(BCAST_GLOBAL)" != ""
118        @echo "#--------------------------------------------------------------" \
119          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) binclean] in $(${PACKAGE}MgrPath)" \
120          && echo "#--------------------------------------------------------------"
121        $(silent) cd /d $(${PACKAGE}MgrPath) && $(BCAST_CMD) binclean
122!else
123       
124!endif
125!endif
126
127${PACKAGE}uninstall : $(${PACKAGE}MgrPath)\NMake
128!if "$(cmt_${PACKAGE}_is_local)" != ""
129        @echo "#--------------------------------------------------------------" \
130          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) uninstall] in $(${PACKAGE}MgrPath)" \
131          && echo "#--------------------------------------------------------------"
132        $(silent) cd /d $(${PACKAGE}MgrPath) && $(BCAST_CMD) uninstall
133!else
134!if "$(BCAST_GLOBAL)" != ""
135        @echo "#--------------------------------------------------------------" \
136          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) uninstall] in $(${PACKAGE}MgrPath)" \
137          && echo "#--------------------------------------------------------------"
138        $(silent) cd /d $(${PACKAGE}MgrPath) && $(BCAST_CMD) uninstall
139!else
140       
141!endif
142!endif
143
144${PACKAGE}check : $(${PACKAGE}MgrPath)\NMake
145!if "$(cmt_${PACKAGE}_is_local)" != ""
146        @echo "#--------------------------------------------------------------" \
147          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) check] in $(${PACKAGE}MgrPath)" \
148          && echo "#--------------------------------------------------------------"
149        $(silent) cd /d $(${PACKAGE}MgrPath) && $(BCAST_CMD) check
150!else
151!if "$(BCAST_GLOBAL)" != ""
152        @echo "#--------------------------------------------------------------" \
153          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) check] in $(${PACKAGE}MgrPath)" \
154          && echo "#--------------------------------------------------------------"
155        $(silent) cd /d $(${PACKAGE}MgrPath) && $(BCAST_CMD) check
156!else
157       
158!endif
159!endif
160
161${PACKAGE} ${PACKAGE}clean ${PACKAGE}binclean ${PACKAGE}uninstall ${PACKAGE}check : FORCE
Note: See TracBrowser for help on using the repository browser.