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

Last change on this file since 859 was 844, checked in by bird, 18 years ago

Library merging. Make use of -filelist on Mac OS X.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1# $Id: brief.kmk 844 2007-02-04 14:17:25Z 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 MSG_L1 ?= @$(ECHO) " $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))"
30else
31 MSG_L1 ?= @$(ECHO) " $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1 $2))))"
32 MSG_L2 ?= @$(ECHO) " $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))"
33endif
34
35## Fetch starting.
36# @param 1 Target name.
37MSG_FETCH ?= $(call MSG_L1,FTCH $1...)
38## Re-fetch starting.
39# @param 1 Target name.
40MSG_REFETCH ?= $(call MSG_L1,RFTCH $1...)
41## Downloading a fetch component.
42# @param 1 Target name.
43# @param 2 The source URL.
44# @param 3 The destination file name.
45MSG_FETCH_DL ?= $(call MSG_L1,GET $1 - $2,=> $3)
46## Checking a fetch component.
47# @param 1 Target name.
48# @param 2 The source URL.
49# @param 3 The destination file name.
50MSG_FETCH_CHK?= $(call MSG_L1,CHK $1 - $3, ($2))
51## Unpacking a fetch component.
52# @param 1 Target name.
53# @param 2 The archive file name.
54# @param 3 The target directory.
55MSG_FETCH_UP ?= $(call MSG_L1,UNPK $1 - $2,=> $3)
56## Fetch completed.
57# @param 1 Target name.
58MSG_FETCH_OK ?= $(call MSG_L1,DONE $1)
59## Unfetch a fetch target.
60# @param 1 Target name.
61MSG_UNFETCH ?= $(call MSG_L1,RM $1...)
62## Compiling a source file.
63# @param 1 Target name.
64# @param 2 The source filename.
65# @param 3 The primary link output file name.
66# @param 4 The source type (CXX,C,AS,RC,++).
67MSG_COMPILE ?= $(call MSG_L1,CC $1 - $2,=> $3)
68## Linking a bldprog/dll/program/sysmod target.
69# @param 1 Target name.
70# @param 2 The primary link output file name.
71# @param 3 The link tool operation (LINK_LIBRARY,LINK_PROGRAM,LINK_DLL,LINK_SYSMOD,++).
72MSG_LINK ?= $(call MSG_L1,$(if $(eq $3,LINK_LIBRARY),AR,LD) $1,=> $2)
73## Merging a library into the target (during library linking).
74# @param 1 Target name.
75# @param 2 The output library name.
76# @param 3 The input library name.
77MSG_AR_MERGE ?= $(NO_SUCH_VARIABLE)
78## Creating a directory (build).
79# @param 1 Directory name.
80MSG_MKDIR ?= $(call MSG_L2,DIR $1)
81## Cleaning.
82MSG_CLEAN ?= $(call MSG_L1,CLEAN)
83## Nothing.
84MSG_NOTHING ?= $(call MSG_L1,NOTHING $(CURDIR))
85## Installing a bldprog/lib/dll/program/sysmod target.
86# @param 1 Target name.
87# @param 2 The source filename.
88# @param 3 The destination file name.
89MSG_INST_TRG ?= $(call MSG_L1,INST $1 => $3)
90## Installing a file (install target).
91# @param 1 The source filename.
92# @param 2 The destination filename.
93MSG_INST_FILE?= $(call MSG_L1,IFIL $2,(<= $1))
94## Installing a symlink.
95# @param 1 Symlink
96# @param 2 Link target
97MSG_INST_SYM ?= $(call MSG_L1,ISYM $1,=> $2)
98## Installing a directory.
99# @param 1 Directory name.
100MSG_INST_DIR ?= $(call MSG_L1,IDIR $1)
101
Note: See TracBrowser for help on using the repository browser.