This commit is contained in:
61
Makefile
Normal file
61
Makefile
Normal file
@@ -0,0 +1,61 @@
|
||||
# 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
|
Reference in New Issue
Block a user