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

Last change on this file since 595 was 595, checked in by rybkin, 13 years ago

See C.L. 472

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