1 | # $Id: brief.kmk 788 2007-01-24 22:44:32Z 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.
|
---|
28 | ifndef KBUILD_VERBOSE
|
---|
29 | MSG_L1 ?= @$(ECHO) " $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))"
|
---|
30 | else
|
---|
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))))"
|
---|
33 | endif
|
---|
34 |
|
---|
35 | ## Fetch starting.
|
---|
36 | # @param 1 Target name.
|
---|
37 | MSG_FETCH ?= $(call MSG_L1,FTCH $1...)
|
---|
38 | ## Re-fetch starting.
|
---|
39 | # @param 1 Target name.
|
---|
40 | MSG_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.
|
---|
45 | MSG_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.
|
---|
50 | MSG_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.
|
---|
55 | MSG_FETCH_UP ?= $(call MSG_L1,UNPK $1 - $2,=> $3)
|
---|
56 | ## Fetch completed.
|
---|
57 | # @param 1 Target name.
|
---|
58 | MSG_FETCH_OK ?= $(call MSG_L1,DONE $1)
|
---|
59 | ## Unfetch a fetch target.
|
---|
60 | # @param 1 Target name.
|
---|
61 | MSG_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,++).
|
---|
67 | MSG_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,++).
|
---|
72 | MSG_LINK ?= $(call MSG_L1,$(if $(eq $3,LINK_LIBRARY),AR,LD) $1,=> $2)
|
---|
73 | ## Creating a directory (build).
|
---|
74 | # @param 1 Directory name.
|
---|
75 | MSG_MKDIR ?= $(call MSG_L2,DIR $1)
|
---|
76 | ## Cleaning.
|
---|
77 | MSG_CLEAN ?= $(call MSG_L1,CLEAN)
|
---|
78 | ## Nothing.
|
---|
79 | MSG_NOTHING ?= $(call MSG_L1,NOTHING $(CURDIR))
|
---|
80 | ## Installing a bldprog/lib/dll/program/sysmod target.
|
---|
81 | # @param 1 Target name.
|
---|
82 | # @param 2 The source filename.
|
---|
83 | # @param 3 The destination file name.
|
---|
84 | MSG_INST_TRG ?= $(call MSG_L1,INST $1 => $3)
|
---|
85 | ## Installing a file (install target).
|
---|
86 | # @param 1 The source filename.
|
---|
87 | # @param 2 The destination filename.
|
---|
88 | MSG_INST_FILE?= $(call MSG_L1,IFIL $2,(<= $1))
|
---|
89 | ## Installing a symlink.
|
---|
90 | # @param 1 Symlink
|
---|
91 | # @param 2 Link target
|
---|
92 | MSG_INST_SYM ?= $(call MSG_L1,ISYM $1,=> $2)
|
---|
93 | ## Installing a directory.
|
---|
94 | # @param 1 Directory name.
|
---|
95 | MSG_INST_DIR ?= $(call MSG_L1,IDIR $1)
|
---|
96 |
|
---|