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