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