afegit pre-hooks

This commit is contained in:
2025-11-23 12:25:08 +01:00
parent 61d833a048
commit 3d2ad5f292
4 changed files with 106 additions and 2 deletions

View File

@@ -385,6 +385,14 @@ linux_release:
# Elimina la carpeta temporal
$(RMDIR) "$(RELEASE_FOLDER)"
# ==============================================================================
# SETUP
# ==============================================================================
setup_hooks:
@echo "Configurando git hooks..."
git config core.hooksPath tools/hooks
@echo "✓ Git hooks configurados desde tools/hooks/"
# ==============================================================================
# REGLAS ESPECIALES
# ==============================================================================
@@ -407,9 +415,10 @@ help:
@echo " macos_release - Crear release completo para macOS"
@echo " pack_tool - Compilar herramienta de empaquetado"
@echo " resources.pack - Generar pack de recursos desde data/"
@echo " setup_hooks - Configurar git hooks (pre-commit)"
@echo " show_version - Mostrar version actual ($(VERSION))"
@echo " help - Mostrar esta ayuda"
FORCE:
.PHONY: windows windows_debug windows_release macos macos_debug macos_release linux linux_debug linux_release pack_tool resources.pack show_version help
.PHONY: windows windows_debug windows_release macos macos_debug macos_release linux linux_debug linux_release pack_tool resources.pack setup_hooks show_version help