source: CMT/HEAD/mgr/fragments/nmake/packages_header @ 600

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

See C.L. 477

File size: 1.7 KB
Line 
1#-- start of packages_header ------
2
3#!include $(CMTROOT)\src\NMakefile.core
4!include $(cmt_broadcast_tagfile)
5
6!if "$(BCAST_CMD)" == ""
7BCAST_CMD = $(cmtexe) make /$(MAKEFLAGS) CMTBCAST=
8!endif
9
10!if "$(LOG_LOCATION)" != ""
11!if "$(LOG_SUFFIX)" == ""
12LOG_SUFFIX = .log
13!endif
14!endif
15
16!if "$(CMTACTIONS)" == ""
17Cmt_actions_handler = if not "%%g" == "cmt_actions"
18!else
19Cmt_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)
30Package_failure_handler = || exit
31!if "$(PACKAGE_FAILURE_POLICY)" != ""
32!if "$(PACKAGE_FAILURE_POLICY)" == "stop"
33Package_failure_handler = || exit
34!else if "$(PACKAGE_FAILURE_POLICY)" == "skip"
35Package_failure_handler = || exit 0
36!else if "$(PACKAGE_FAILURE_POLICY)" == "ignore"
37Package_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
44all :: ;
45
46!if "$(BCAST_ONLY)" != ""
47all :: ${PACKAGE}
48clean : ${PACKAGE}clean
49binclean : ${PACKAGE}binclean
50uninstall : ${PACKAGE}uninstall
51check : ${PACKAGE}check
52!endif
53#--------------------------------------------------------
54
55!if "$(use_requirements)" != ""
56$(use_requirements) : ;
57!endif
58
59#-- end of packages_header ------
Note: See TracBrowser for help on using the repository browser.