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