source: trunk/kBuild/msgstyles/brief.kmk@ 1473

Last change on this file since 1473 was 892, checked in by bird, 18 years ago

adjusted the MSG_L1 override.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.3 KB
Line 
1# $Id: brief.kmk 892 2007-05-03 00:10:44Z bird $
2## @file
3#
4# kBuild Message Style - 'brief'
5#
6# Copyright (c) 2007 knut st. osmundsen <bird-kBuild-spam@anduin.net>
7#
8#
9# This file is part of kBuild.
10#
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.
15#
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.
20#
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
24#
25#
26
27# Indent the messages, drop the kBuild: prefix, and shorten paths.
28ifndef KBUILD_VERBOSE
29 ifndef MSG_L1
30 MSG_L1 = @$(PRINTF) " %-7s %s\n" \
31 "$(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))" \
32 "$(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$2))))"
33 endif
34else
35 MSG_L1 ?= @$(ECHO) " $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1 $2))))"
36 MSG_L2 ?= @$(ECHO) " $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))"
37endif
38
39## Fetch starting.
40# @param 1 Target name.
41MSG_FETCH ?= $(call MSG_L1,FTCH,$1...)
42## Re-fetch starting.
43# @param 1 Target name.
44MSG_REFETCH ?= $(call MSG_L1,RFTCH,$1...)
45## Downloading a fetch component.
46# @param 1 Target name.
47# @param 2 The source URL.
48# @param 3 The destination file name.
49MSG_FETCH_DL ?= $(call MSG_L1,GET,$1 - $2,=> $3)
50## Checking a fetch component.
51# @param 1 Target name.
52# @param 2 The source URL.
53# @param 3 The destination file name.
54MSG_FETCH_CHK?= $(call MSG_L1,CHK,$1 - $3, ($2))
55## Unpacking a fetch component.
56# @param 1 Target name.
57# @param 2 The archive file name.
58# @param 3 The target directory.
59MSG_FETCH_UP ?= $(call MSG_L1,UNPK,$1 - $2,=> $3)
60## Fetch completed.
61# @param 1 Target name.
62MSG_FETCH_OK ?= $(call MSG_L1,DONE,$1)
63## Unfetch a fetch target.
64# @param 1 Target name.
65MSG_UNFETCH ?= $(call MSG_L1,RM,$1...)
66## Compiling a source file.
67# @param 1 Target name.
68# @param 2 The source filename.
69# @param 3 The primary link output file name.
70# @param 4 The source type (CXX,C,AS,RC,++).
71MSG_COMPILE ?= $(call MSG_L1,$4,$1 - $2,=> $3)
72## Tool
73# @param 1 The tool name (bin2c,...)
74# @param 2 Target name.
75# @param 3 The source filename.
76# @param 4 The primary output file name.
77MSG_TOOL ?= $(call MSG_L1,$1,$2 - $3,=> $4)
78## Generate a file, typically a source file.
79# @param 1 Target name if applicable.
80# @param 2 Output file name.
81# @param 3 What it's generated from
82MSG_GENERATE ?= $(call MSG_L1,GEN,$2)
83## Linking a bldprog/dll/program/sysmod target.
84# @param 1 Target name.
85# @param 2 The primary link output file name.
86# @param 3 The link tool operation (LINK_LIBRARY,LINK_PROGRAM,LINK_DLL,LINK_SYSMOD,++).
87MSG_LINK ?= $(call MSG_L1,$(if $(eq $3,LINK_LIBRARY),AR,LD),$1,=> $2)
88## Merging a library into the target (during library linking).
89# @param 1 Target name.
90# @param 2 The output library name.
91# @param 3 The input library name.
92MSG_AR_MERGE ?= $(NO_SUCH_VARIABLE)
93## Creating a directory (build).
94# @param 1 Directory name.
95MSG_MKDIR ?= $(call MSG_L2,DIR,$1)
96## Cleaning.
97MSG_CLEAN ?= $(call MSG_L1,CLEAN)
98## Nothing.
99MSG_NOTHING ?= $(call MSG_L1,NOTHING $(CURDIR))
100## Installing a bldprog/lib/dll/program/sysmod target.
101# @param 1 Target name.
102# @param 2 The source filename.
103# @param 3 The destination file name.
104MSG_INST_TRG ?= $(call MSG_L1,INST,$1 => $3)
105## Installing a file (install target).
106# @param 1 The source filename.
107# @param 2 The destination filename.
108MSG_INST_FILE?= $(call MSG_L1,IFIL,$2,(<= $1))
109## Installing a symlink.
110# @param 1 Symlink
111# @param 2 Link target
112MSG_INST_SYM ?= $(call MSG_L1,ISYM,$1,=> $2)
113## Installing a directory.
114# @param 1 Directory name.
115MSG_INST_DIR ?= $(call MSG_L1,IDIR,$1)
116
Note: See TracBrowser for help on using the repository browser.