1 | #-- start of packages_header ------ |
---|
2 | |
---|
3 | include ${CMTROOT}/src/Makefile.core |
---|
4 | |
---|
5 | ifndef BCAST_CMD |
---|
6 | BCAST_CMD = $(cmtexe) make |
---|
7 | endif |
---|
8 | |
---|
9 | ifdef LOG_LOCATION |
---|
10 | LOG_SUFFIX = .log |
---|
11 | endif |
---|
12 | |
---|
13 | ifndef CMTACTIONS |
---|
14 | Cmt_actions_handler = test "$$group" != cmt_actions || continue ; |
---|
15 | else |
---|
16 | Cmt_actions_handler = |
---|
17 | endif |
---|
18 | |
---|
19 | # -- Special macro to change the behavior on a failure of a package |
---|
20 | # (complementary to the option '-k') |
---|
21 | # Allowed values for PACKAGE_FAILURE_POLICY: |
---|
22 | # stop: do not continue (default) |
---|
23 | # skip: if a group fails, continue with the next package |
---|
24 | # ignore: try all the groups even if one fails before going to the next package |
---|
25 | # (may result in duplicated errors within a package) |
---|
26 | # Taken from https://svnweb.cern.ch/trac/gaudi/browser/Gaudi/trunk/Makefile.cmt |
---|
27 | Package_failure_handler = test $$BUILD_RESULT -eq 0 || exit $$BUILD_RESULT ; |
---|
28 | ifdef PACKAGE_FAILURE_POLICY |
---|
29 | ifeq ($(PACKAGE_FAILURE_POLICY),stop) |
---|
30 | Package_failure_handler = test $$BUILD_RESULT -eq 0 || exit $$BUILD_RESULT ; |
---|
31 | else |
---|
32 | ifeq ($(PACKAGE_FAILURE_POLICY),skip) |
---|
33 | Package_failure_handler = test $$BUILD_RESULT -eq 0 || break ; |
---|
34 | else |
---|
35 | ifeq ($(PACKAGE_FAILURE_POLICY),ignore) |
---|
36 | Package_failure_handler = |
---|
37 | else |
---|
38 | $(error Unknown PACKAGE_FAILURE_POLICY "$(PACKAGE_FAILURE_POLICY)". Allowed values: "stop" (default), "skip", "ignore") |
---|
39 | endif |
---|
40 | endif |
---|
41 | endif |
---|
42 | endif |
---|
43 | # -- |
---|
44 | |
---|
45 | all : ; |
---|
46 | |
---|
47 | ifdef BCAST_ONLY |
---|
48 | all : ${PACKAGE} |
---|
49 | clean : ${PACKAGE}clean |
---|
50 | binclean : ${PACKAGE}binclean |
---|
51 | uninstall : ${PACKAGE}uninstall |
---|
52 | endif |
---|
53 | #-------------------------------------------------------- |
---|
54 | |
---|
55 | ifndef PEDANTIC |
---|
56 | .DEFAULT : |
---|
57 | $(echo) "(uses.make) $@: No rule for such target" >&2 |
---|
58 | endif |
---|
59 | |
---|
60 | #-- end of packages_header ------ |
---|