Не большие изменения
This commit is contained in:
22
makefile
22
makefile
@@ -67,15 +67,14 @@ define measure_time
|
||||
$(2); \
|
||||
end=$$(date +%s); \
|
||||
duration=$$((end - start)); \
|
||||
echo "$(1): $$duration сек" >> $(TIMING_FILE); \
|
||||
if [ $$duration -ge 60 ]; then \
|
||||
min=$$((duration / 60)); \
|
||||
sec=$$((duration % 60)); \
|
||||
time_str="$${min}m $${sec}s"; \
|
||||
echo "$(GREEN)✓ $(1) завершён за $${min}m $${sec}s$(NC)"; \
|
||||
else \
|
||||
time_str="$${duration}s"; \
|
||||
fi; \
|
||||
echo "$(1): $$time_str" >> $(TIMING_FILE); \
|
||||
echo "$(GREEN)✓ $(1) завершён за $$time_str$(NC)"
|
||||
echo "$(GREEN)✓ $(1) завершён за $${duration}s$(NC)"; \
|
||||
fi
|
||||
endef
|
||||
|
||||
define print_timing_summary
|
||||
@@ -136,6 +135,15 @@ favicon:
|
||||
@$(IMAGEMAGICK) assets/logo.png -define icon:auto-resize=48,32,16 src/static/favicon.ico
|
||||
@echo "$(GREEN) ✓ src/static/favicon.ico$(NC)"
|
||||
|
||||
# ============================================
|
||||
# ИКОНКА ДЛЯ WINDOWS
|
||||
# ============================================
|
||||
windows-icon:
|
||||
@if [ ! -f assets/logo.ico ]; then \
|
||||
echo "$(YELLOW)logo.ico не найден, запускаю генерацию...$(NC)"; \
|
||||
$(MAKE) icons; \
|
||||
fi
|
||||
|
||||
# ============================================
|
||||
# ОПРЕДЕЛЕНИЕ ПЛАТФОРМЫ
|
||||
# ============================================
|
||||
@@ -217,10 +225,10 @@ build-mac:
|
||||
@echo "$(GREEN)🍎 Сборка для macOS...$(NC)"
|
||||
@time cargo build --release
|
||||
|
||||
build-windows:
|
||||
build-windows: windows-icon
|
||||
@echo "$(GREEN)🪟 Сборка для Windows x86_64...$(NC)"
|
||||
@time cargo build --target x86_64-pc-windows-gnu --release
|
||||
|
||||
|
||||
build-linux:
|
||||
@echo "$(GREEN)🐧 Сборка для Linux x86_64 (GNU)...$(NC)"
|
||||
@time cargo build --target x86_64-unknown-linux-gnu --release
|
||||
|
||||
Reference in New Issue
Block a user