這裏顯示兩個版本的差異處。
| Both sides previous revision 前次修改 下次修改 | 前次修改 | ||
|
calculation_bios_build_time [2024/07/09 08:28] don |
calculation_bios_build_time [2024/09/11 12:36] (目前版本) don |
||
|---|---|---|---|
| 行 2: | 行 2: | ||
| makefile | makefile | ||
| + | < | ||
| + | target: target1 target2 | ||
| + | < | ||
| + | </ | ||
| + | |||
| + | |||
| + | Step1 : Add two variables before .XXXXX | ||
| + | < | ||
| + | START_TIME := $(shell echo %time%) | ||
| + | END_TIME := $(shell echo %time%) | ||
| + | </ | ||
| + | |||
| + | Step2 : Add two targets | ||
| + | < | ||
| + | start_time: | ||
| + | @echo Start Time: $(START_TIME) | ||
| + | |||
| + | end_time: | ||
| + | $(eval END_TIME := $(shell echo %time%)) | ||
| + | @echo Start Time: $(START_TIME) | ||
| + | @echo End Time: $(END_TIME) | ||
| + | @echo. | ||
| + | @echo Calculate time... | ||
| + | @powershell -Command " | ||
| + | </ | ||
| + | |||
| + | Step3 : Add " | ||
| + | < | ||
| + | .PHONY : all clean rebuild run RunAmiSdl AptioV sdl Prologue start_time end_time | ||
| + | </ | ||
| + | |||
| + | Step4 : Add the target to start location and end location\\ | ||
| + | |||
| + | all: <color # | ||
| + | |||
| + | |||
| + | Completion makefile | ||
| + | |||
| < | < | ||
| export CONFIGURATION_DIR: | export CONFIGURATION_DIR: | ||
| 行 28: | 行 66: | ||
| END_TIME := $(shell echo %time%) | END_TIME := $(shell echo %time%) | ||
| - | .PHONY : all clean rebuild run RunAmiSdl AptioV sdl Prologue | + | .PHONY : all clean rebuild run RunAmiSdl AptioV sdl Prologue |
| all: start_time Prologue $(BUILD_DIR) RunAmiSdl AptioV end_time | all: start_time Prologue $(BUILD_DIR) RunAmiSdl AptioV end_time | ||