[588] | 1 | #-- start of packages_header ------ |
---|
| 2 | |
---|
| 3 | include ${CMTROOT}/src/Makefile.core |
---|
| 4 | |
---|
[599] | 5 | # |
---|
| 6 | # Basic tag management |
---|
| 7 | # |
---|
| 8 | ifdef tag |
---|
| 9 | CMTEXTRATAGS = $(tag) |
---|
| 10 | else |
---|
| 11 | tag = $(CMTCONFIG) |
---|
| 12 | endif |
---|
| 13 | |
---|
| 14 | tags = $(tag),$(CMTEXTRATAGS) |
---|
| 15 | |
---|
| 16 | #cmt_local_tagfile = $(bin)$(tag).make |
---|
| 17 | cmt_broadcast_tagfile = $(bin)$(tag)_broadcast.make |
---|
| 18 | |
---|
| 19 | include $(cmt_broadcast_tagfile) |
---|
| 20 | |
---|
[588] | 21 | ifndef BCAST_CMD |
---|
| 22 | BCAST_CMD = $(cmtexe) make |
---|
| 23 | endif |
---|
| 24 | |
---|
| 25 | ifdef LOG_LOCATION |
---|
[600] | 26 | ifndef LOG_SUFFIX |
---|
[588] | 27 | LOG_SUFFIX = .log |
---|
| 28 | endif |
---|
[600] | 29 | endif |
---|
[588] | 30 | |
---|
| 31 | ifndef CMTACTIONS |
---|
| 32 | Cmt_actions_handler = test "$$group" != cmt_actions || continue ; |
---|
| 33 | else |
---|
| 34 | Cmt_actions_handler = |
---|
| 35 | endif |
---|
| 36 | |
---|
| 37 | # -- Special macro to change the behavior on a failure of a package |
---|
| 38 | # (complementary to the option '-k') |
---|
| 39 | # Allowed values for PACKAGE_FAILURE_POLICY: |
---|
| 40 | # stop: do not continue (default) |
---|
| 41 | # skip: if a group fails, continue with the next package |
---|
| 42 | # ignore: try all the groups even if one fails before going to the next package |
---|
| 43 | # (may result in duplicated errors within a package) |
---|
[663] | 44 | # Taken from https://svnweb.cern.ch/trac/gaudi/browser/Gaudi/trunk/Makefile.cmt (Modified by Grigory Rybkin) |
---|
[600] | 45 | Package_failure_handler = || exit |
---|
[588] | 46 | ifdef PACKAGE_FAILURE_POLICY |
---|
| 47 | ifeq ($(PACKAGE_FAILURE_POLICY),stop) |
---|
[600] | 48 | Package_failure_handler = || exit |
---|
[588] | 49 | else |
---|
| 50 | ifeq ($(PACKAGE_FAILURE_POLICY),skip) |
---|
[600] | 51 | Package_failure_handler = || exit 0 |
---|
[588] | 52 | else |
---|
| 53 | ifeq ($(PACKAGE_FAILURE_POLICY),ignore) |
---|
[600] | 54 | Package_failure_handler = || : |
---|
[588] | 55 | else |
---|
| 56 | $(error Unknown PACKAGE_FAILURE_POLICY "$(PACKAGE_FAILURE_POLICY)". Allowed values: "stop" (default), "skip", "ignore") |
---|
| 57 | endif |
---|
| 58 | endif |
---|
| 59 | endif |
---|
| 60 | endif |
---|
[595] | 61 | # ----------------------------------------------------------------- |
---|
[588] | 62 | |
---|
| 63 | all : ; |
---|
| 64 | |
---|
| 65 | ifdef BCAST_ONLY |
---|
| 66 | all : ${PACKAGE} |
---|
| 67 | clean : ${PACKAGE}clean |
---|
| 68 | binclean : ${PACKAGE}binclean |
---|
| 69 | uninstall : ${PACKAGE}uninstall |
---|
[595] | 70 | check : ${PACKAGE}check |
---|
[588] | 71 | endif |
---|
| 72 | #-------------------------------------------------------- |
---|
| 73 | |
---|
[599] | 74 | ${CMTROOT}/src/Makefile.core : ; |
---|
| 75 | $(cmt_broadcast_tagfile) : ; |
---|
| 76 | ifdef use_requirements |
---|
| 77 | $(use_requirements) : ; |
---|
| 78 | endif |
---|
| 79 | |
---|
[588] | 80 | ifndef PEDANTIC |
---|
| 81 | .DEFAULT : |
---|
[599] | 82 | $(echo) "(packages) $@: No rule for such target" >&2 |
---|
[588] | 83 | endif |
---|
| 84 | |
---|
| 85 | #-- end of packages_header ------ |
---|