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

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

See C.L. 477

File size: 4.8 KB
Line 
1
2cmt_${PACKAGE}_${ISLOCAL} = 1
3
4${PACKAGE}FullName=${PACKAGEFULLNAME}
5${PACKAGE}MgrPath=${PACKAGEMGRPATH}
6
7ifdef LOG_LOCATION
8ifdef cmt_${PACKAGE}_is_local
9${PACKAGE}OutErr = >>$(LOG_LOCATION)/$(${PACKAGE}FullName)$(LOG_SUFFIX) 2>&1
10else
11ifdef BCAST_GLOBAL
12${PACKAGE}OutErr = >>$(LOG_LOCATION)/$(${PACKAGE}FullName)$(LOG_SUFFIX) 2>&1
13endif
14endif
15endif
16
17ifndef BCAST_ONLY
18${PACKAGE} : ${DEPENDENCIES} $(${PACKAGE}MgrPath)/Makefile
19else
20${PACKAGE} : $(${PACKAGE}MgrPath)/Makefile
21endif
22ifdef cmt_${PACKAGE}_is_local
23        @echo "#--------------------------------------------------------------" \
24          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
25          && echo "#--------------------------------------------------------------"
26ifdef LOG_LOCATION
27        $(silent) > $(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)
31endif
32ifdef NO_ALL_GROUPS
33        +$(silent) cd $(${PACKAGE}MgrPath) && \
34          { $(BCAST_CMD) $(Package_failure_handler); } \
35          $(${PACKAGE}OutErr)
36else
37        +$(silent) cd $(${PACKAGE}MgrPath) && \
38          for group in all $$($(cmtexe) show groups); do \
39            $(Cmt_actions_handler) \
40            $(BCAST_CMD) $$group $(Package_failure_handler) ; \
41          done $(${PACKAGE}OutErr)
42endif
43else
44ifdef BCAST_GLOBAL
45        @echo "#--------------------------------------------------------------" \
46          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
47          && echo "#--------------------------------------------------------------"
48ifdef LOG_LOCATION
49        $(silent) > $(LOG_LOCATION)/$(${PACKAGE}FullName)$(LOG_SUFFIX)
50        @{ echo "#--------------------------------------------------------------" \
51          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD)] in $(${PACKAGE}MgrPath)" \
52          && echo "#--------------------------------------------------------------"; } $(${PACKAGE}OutErr)
53endif
54ifdef NO_ALL_GROUPS
55        +$(silent) cd $(${PACKAGE}MgrPath) && \
56          { $(BCAST_CMD) $(Package_failure_handler); } \
57          $(${PACKAGE}OutErr)
58else
59        +$(silent) cd $(${PACKAGE}MgrPath) && \
60          for group in all $$($(cmtexe) show groups); do \
61            $(Cmt_actions_handler) \
62            $(BCAST_CMD) $$group $(Package_failure_handler) ; \
63          done $(${PACKAGE}OutErr)
64endif
65else
66       
67endif
68endif
69
70$(${PACKAGE}MgrPath)/Makefile :
71ifdef cmt_${PACKAGE}_is_local
72        $(echo) configuring ${PACKAGE}
73        +$(silent) cd $(${PACKAGE}MgrPath) && $(cmtexe) config
74else
75ifdef BCAST_GLOBAL
76        $(echo) configuring ${PACKAGE}
77        +$(silent) cd $(${PACKAGE}MgrPath) && $(cmtexe) config
78else
79       
80endif
81endif
82
83ifndef BCAST_ONLY
84all : ${PACKAGE}
85clean : ${PACKAGE}clean
86binclean : ${PACKAGE}binclean
87uninstall : ${PACKAGE}uninstall
88check : ${PACKAGE}check
89endif
90
91${PACKAGE}clean ${PACKAGE}binclean ${PACKAGE}uninstall ${PACKAGE}check : $(${PACKAGE}MgrPath)/Makefile
92ifdef cmt_${PACKAGE}_is_local
93        @echo "#--------------------------------------------------------------" \
94          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@)] in $(${PACKAGE}MgrPath)" \
95          && echo "#--------------------------------------------------------------"
96ifdef LOG_LOCATION
97        @{ echo "#--------------------------------------------------------------" \
98          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@)] in $(${PACKAGE}MgrPath)" \
99          && echo "#--------------------------------------------------------------"; } $(${PACKAGE}OutErr)
100endif
101        +$(silent) cd $(${PACKAGE}MgrPath) && \
102          { $(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@) $(Package_failure_handler); } \
103          $(${PACKAGE}OutErr)
104else
105ifdef BCAST_GLOBAL
106        @echo "#--------------------------------------------------------------" \
107          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@)] in $(${PACKAGE}MgrPath)" \
108          && echo "#--------------------------------------------------------------"
109ifdef LOG_LOCATION
110        @{ echo "#--------------------------------------------------------------" \
111          && echo "# ${PACKAGE} $(${PACKAGEPREFIX}VERSION) $(${PACKAGE}_offset): Now trying [$(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@)] in $(${PACKAGE}MgrPath)" \
112          && echo "#--------------------------------------------------------------"; } $(${PACKAGE}OutErr)
113endif
114        +$(silent) cd $(${PACKAGE}MgrPath) && \
115          { $(BCAST_CMD) $(patsubst ${PACKAGE}%,%,$@) $(Package_failure_handler); } \
116          $(${PACKAGE}OutErr)
117else
118       
119endif
120endif
121
122${PACKAGE} ${PACKAGE}clean ${PACKAGE}binclean ${PACKAGE}uninstall ${PACKAGE}check : FORCE
Note: See TracBrowser for help on using the repository browser.