kbuild-0.1.5.ebuild: 0.1.4 -> 0.1.5.
[kbuild-mirror.git] / kBuild / msgstyles / brief.kmk
blobbf43f4a0dc59a6468d21e2ce034646b4e8c9a4aa
1 # $Id$
2 ## @file
3 # kBuild Message Style - 'brief'
7 # Copyright (c) 2007-2008 knut st. osmundsen <bird-kBuild-spam@anduin.net>
9 # This file is part of kBuild.
11 # kBuild is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2 of the License, or
14 # (at your option) any later version.
16 # kBuild is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with kBuild; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 # As a special exception you are granted permission to include this file, via
27 # the kmk include directive, as you wish without this in itself causing the
28 # resulting makefile, program or whatever to be covered by the GPL license.
29 # This exception does not however invalidate any other reasons why the makefile,
30 # program, whatever should not be covered the GPL.
34 # Indent the messages, drop the kBuild: prefix, and shorten paths.
35 ifndef KBUILD_VERBOSE
36 ifndef MSG_L1
37 MSG_L1 = @$(PRINTF) " %-7s %s\n" \
38 "$(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))" \
39 "$(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$2))))"
40 endif
41 else
42 MSG_L1 ?= @$(ECHO) " $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1 $2))))"
43 MSG_L2 ?= @$(ECHO) " $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))"
44 endif
46 ## Fetch starting.
47 # @param 1 Target name.
48 MSG_FETCH ?= $(call MSG_L1,FTCH,$1...)
49 ## Re-fetch starting.
50 # @param 1 Target name.
51 MSG_REFETCH ?= $(call MSG_L1,RFTCH,$1...)
52 ## Downloading a fetch component.
53 # @param 1 Target name.
54 # @param 2 The source URL.
55 # @param 3 The destination file name.
56 MSG_FETCH_DL ?= $(call MSG_L1,GET,$1 - $2,=> $3)
57 ## Checking a fetch component.
58 # @param 1 Target name.
59 # @param 2 The source URL.
60 # @param 3 The destination file name.
61 MSG_FETCH_CHK?= $(call MSG_L1,CHK,$1 - $3, ($2))
62 ## Unpacking a fetch component.
63 # @param 1 Target name.
64 # @param 2 The archive file name.
65 # @param 3 The target directory.
66 MSG_FETCH_UP ?= $(call MSG_L1,UNPK,$1 - $2,=> $3)
67 ## Fetch completed.
68 # @param 1 Target name.
69 MSG_FETCH_OK ?= $(call MSG_L1,DONE,$1)
70 ## Unfetch a fetch target.
71 # @param 1 Target name.
72 MSG_UNFETCH ?= $(call MSG_L1,RM,$1...)
73 ## Compiling a source file.
74 # @param 1 Target name.
75 # @param 2 The source filename.
76 # @param 3 The primary link output file name.
77 # @param 4 The source type (CXX,C,AS,RC,++).
78 MSG_COMPILE ?= $(call MSG_L1,$4,$1 - $2,=> $3)
79 ## Tool
80 # @param 1 The tool name (bin2c,...)
81 # @param 2 Target name.
82 # @param 3 The source filename.
83 # @param 4 The primary output file name.
84 MSG_TOOL ?= $(call MSG_L1,$1,$2 - $3,=> $4)
85 ## Generate a file, typically a source file.
86 # @param 1 Target name if applicable.
87 # @param 2 Output file name.
88 # @param 3 What it's generated from
89 MSG_GENERATE ?= $(call MSG_L1,GEN,$2)
90 ## Linking a bldprog/dll/program/sysmod target.
91 # @param 1 Target name.
92 # @param 2 The primary link output file name.
93 # @param 3 The link tool operation (LINK_LIBRARY,LINK_PROGRAM,LINK_DLL,LINK_SYSMOD,++).
94 MSG_LINK ?= $(call MSG_L1,$(if $(eq $3,LINK_LIBRARY),AR,LD),$1,=> $2)
95 ## Merging a library into the target (during library linking).
96 # @param 1 Target name.
97 # @param 2 The output library name.
98 # @param 3 The input library name.
99 MSG_AR_MERGE ?= $(NO_SUCH_VARIABLE)
100 ## Creating a directory (build).
101 # @param 1 Directory name.
102 MSG_MKDIR ?= $(call MSG_L2,DIR,$1)
103 ## Cleaning.
104 MSG_CLEAN ?= $(call MSG_L1,CLEAN)
105 ## Nothing.
106 MSG_NOTHING ?= $(call MSG_L1,NOTHING $(CURDIR))
107 ## Installing a bldprog/lib/dll/program/sysmod target.
108 # @param 1 Target name.
109 # @param 2 The source filename.
110 # @param 3 The destination file name.
111 MSG_INST_TRG ?= $(call MSG_L1,INST,$1 => $3)
112 ## Installing a file (install target).
113 # @param 1 The source filename.
114 # @param 2 The destination filename.
115 MSG_INST_FILE?= $(call MSG_L1,IFIL,$2,(<= $1))
116 ## Installing a symlink.
117 # @param 1 Symlink
118 # @param 2 Link target
119 MSG_INST_SYM ?= $(call MSG_L1,ISYM,$1,=> $2)
120 ## Installing a directory.
121 # @param 1 Directory name.
122 MSG_INST_DIR ?= $(call MSG_L1,IDIR,$1)