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

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

See C.L. 511

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