Changeset 890 in kBuild
- Timestamp:
- May 2, 2007 11:27:22 PM (18 years ago)
- Location:
- trunk/kBuild
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/header.kmk
r889 r890 813 813 # @param 4 The source type (CXX,C,AS,RC,++). 814 814 MSG_COMPILE ?= $(call MSG_L1,Compiling $1 - $2,=> $3) 815 ## Tool 816 # @param 1 The tool name (bin2c,...) 817 # @param 2 Target name. 818 # @param 3 The source filename. 819 # @param 4 The primary output file name. 820 MSG_TOOL ?= $(call MSG_L1,$1 $2 - $3,=> $4) 821 ## Generate a file, typically a source file. 822 # @param 1 Target name if applicable. 823 # @param 2 Output file name. 824 # @param 3 What it's generated from 825 MSG_GENERATE ?= $(call MSG_L1,Generating $(if $1,$1 - )$2,$(if $3,from $3)) 815 826 ## Linking a bldprog/dll/program/sysmod target. 816 827 # @param 1 Target name. -
trunk/kBuild/msgstyles/brief.kmk
r844 r890 27 27 # Indent the messages, drop the kBuild: prefix, and shorten paths. 28 28 ifndef KBUILD_VERBOSE 29 MSG_L1 ?= @$(ECHO) " $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))" 29 MSG_L1 ?= @$(PRINTF) " %-8s%s" "$(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1))))" 30 MSG_L1 ?= @$(PRINTF) " %-8s%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))))" 30 33 else 31 34 MSG_L1 ?= @$(ECHO) " $(subst $(PATH_ROOT)/,{R}/,$(subst $(PATH_OUT)/,{O}/,$(subst $(CURDIR)/,{C}/,$(subst $(PATH_TARGET)/,{T}/,$1 $2))))" … … 35 38 ## Fetch starting. 36 39 # @param 1 Target name. 37 MSG_FETCH ?= $(call MSG_L1,FTCH 40 MSG_FETCH ?= $(call MSG_L1,FTCH,$1...) 38 41 ## Re-fetch starting. 39 42 # @param 1 Target name. 40 MSG_REFETCH ?= $(call MSG_L1,RFTCH 43 MSG_REFETCH ?= $(call MSG_L1,RFTCH,$1...) 41 44 ## Downloading a fetch component. 42 45 # @param 1 Target name. 43 46 # @param 2 The source URL. 44 47 # @param 3 The destination file name. 45 MSG_FETCH_DL ?= $(call MSG_L1,GET 48 MSG_FETCH_DL ?= $(call MSG_L1,GET,$1 - $2,=> $3) 46 49 ## Checking a fetch component. 47 50 # @param 1 Target name. 48 51 # @param 2 The source URL. 49 52 # @param 3 The destination file name. 50 MSG_FETCH_CHK?= $(call MSG_L1,CHK 53 MSG_FETCH_CHK?= $(call MSG_L1,CHK,$1 - $3, ($2)) 51 54 ## Unpacking a fetch component. 52 55 # @param 1 Target name. 53 56 # @param 2 The archive file name. 54 57 # @param 3 The target directory. 55 MSG_FETCH_UP ?= $(call MSG_L1,UNPK 58 MSG_FETCH_UP ?= $(call MSG_L1,UNPK,$1 - $2,=> $3) 56 59 ## Fetch completed. 57 60 # @param 1 Target name. 58 MSG_FETCH_OK ?= $(call MSG_L1,DONE 61 MSG_FETCH_OK ?= $(call MSG_L1,DONE,$1) 59 62 ## Unfetch a fetch target. 60 63 # @param 1 Target name. 61 MSG_UNFETCH ?= $(call MSG_L1,RM 64 MSG_UNFETCH ?= $(call MSG_L1,RM,$1...) 62 65 ## Compiling a source file. 63 66 # @param 1 Target name. … … 65 68 # @param 3 The primary link output file name. 66 69 # @param 4 The source type (CXX,C,AS,RC,++). 67 MSG_COMPILE ?= $(call MSG_L1,CC $1 - $2,=> $3) 70 MSG_COMPILE ?= $(call MSG_L1,$4,$1 - $2,=> $3) 71 ## Tool 72 # @param 1 The tool name (bin2c,...) 73 # @param 2 Target name. 74 # @param 3 The source filename. 75 # @param 4 The primary output file name. 76 MSG_TOOL ?= $(call MSG_L1,$1,$2 - $3,=> $4) 77 ## Generate a file, typically a source file. 78 # @param 1 Target name if applicable. 79 # @param 2 Output file name. 80 # @param 3 What it's generated from 81 MSG_GENERATE ?= $(call MSG_L1,GEN,$2) 68 82 ## Linking a bldprog/dll/program/sysmod target. 69 83 # @param 1 Target name. 70 84 # @param 2 The primary link output file name. 71 85 # @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) 86 MSG_LINK ?= $(call MSG_L1,$(if $(eq $3,LINK_LIBRARY),AR,LD),$1,=> $2) 73 87 ## Merging a library into the target (during library linking). 74 88 # @param 1 Target name. … … 78 92 ## Creating a directory (build). 79 93 # @param 1 Directory name. 80 MSG_MKDIR ?= $(call MSG_L2,DIR 94 MSG_MKDIR ?= $(call MSG_L2,DIR,$1) 81 95 ## Cleaning. 82 96 MSG_CLEAN ?= $(call MSG_L1,CLEAN) … … 87 101 # @param 2 The source filename. 88 102 # @param 3 The destination file name. 89 MSG_INST_TRG ?= $(call MSG_L1,INST 103 MSG_INST_TRG ?= $(call MSG_L1,INST,$1 => $3) 90 104 ## Installing a file (install target). 91 105 # @param 1 The source filename. 92 106 # @param 2 The destination filename. 93 MSG_INST_FILE?= $(call MSG_L1,IFIL 107 MSG_INST_FILE?= $(call MSG_L1,IFIL,$2,(<= $1)) 94 108 ## Installing a symlink. 95 109 # @param 1 Symlink 96 110 # @param 2 Link target 97 MSG_INST_SYM ?= $(call MSG_L1,ISYM 111 MSG_INST_SYM ?= $(call MSG_L1,ISYM,$1,=> $2) 98 112 ## Installing a directory. 99 113 # @param 1 Directory name. 100 MSG_INST_DIR ?= $(call MSG_L1,IDIR 114 MSG_INST_DIR ?= $(call MSG_L1,IDIR,$1) 101 115
Note:
See TracChangeset
for help on using the changeset viewer.