Files
log/Makefile
syui f7c9e1085c
Some checks failed
Deploy ailog / build-and-deploy (push) Failing after 13m14s
fix
2025-06-11 12:34:24 +09:00

61 lines
1.5 KiB
Makefile

# ai.log Makefile (Pure Rust + HTML + JS)
.PHONY: help dev build-oauth build-blog build clean serve tunnel
# Default target
help:
@echo "🚀 ai.log Build Commands (Pure Rust + HTML + JS)"
@echo ""
@echo "Development:"
@echo " make dev - Build OAuth files, blog and start dev server"
@echo " make serve - Start dev server only (no build)"
@echo ""
@echo "Production:"
@echo " make tunnel - Build everything and start Cloudflare tunnel"
@echo ""
@echo "Building:"
@echo " make build - Build OAuth files and blog"
@echo " make build-oauth - Copy OAuth files from oauth/ to my-blog/static/"
@echo " make build-blog - Build blog only"
@echo ""
@echo "Maintenance:"
@echo " make clean - Clean build artifacts"
# Copy OAuth files (no Node.js build needed)
build-oauth:
@echo "🔧 Copying OAuth files..."
@./run.zsh oauth
@echo "✅ OAuth files copied"
# Build blog
build-blog:
@echo "📦 Building blog..."
@./run.zsh build
@echo "✅ Blog built"
# Build everything
build: build-oauth build-blog
# Development server
dev: build
@echo "🌐 Starting development server..."
@./run.zsh serve
# Production server only (no build)
serve:
@echo "🌐 Starting server..."
@./run.zsh serve
# Production deployment
tunnel:
@echo "🚀 Starting production deployment..."
@./run.zsh tunnel
# Clean build artifacts
clean:
@echo "🧹 Cleaning build artifacts..."
@./run.zsh clean
@echo "✅ Cleaned"
# Quick development cycle
quick: build serve