source: CMT/HEAD/mgr/fragments/packages_header @ 599

Last change on this file since 599 was 599, checked in by rybkin, 12 years ago

See C.L. 476

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