/ Makefile
Makefile
1 # Kamaji Project Makefile 2 # Delegates to Go implementation as primary 3 4 .PHONY: build test clean install run help dev-setup 5 6 # Default target 7 all: build 8 9 # Build the Go implementation 10 build: 11 @echo "Building Kamaji (Go implementation)..." 12 cd go && $(MAKE) build 13 14 # Run tests 15 test: 16 @echo "Running Go tests..." 17 cd go && $(MAKE) test 18 19 # Clean build artifacts 20 clean: 21 @echo "Cleaning build artifacts..." 22 cd go && $(MAKE) clean 23 rm -rf target/ 24 rm -rf kamaji.egg-info/ 25 find . -type d -name __pycache__ -exec rm -rf {} + 2>/dev/null || true 26 27 # Install the Go binary 28 install: build 29 @echo "Installing Kamaji..." 30 cd go && $(MAKE) install 31 32 # Run Kamaji 33 run: build 34 @echo "Running Kamaji..." 35 ./go/bin/kamaji 36 37 # Development setup 38 dev-setup: 39 @echo "Setting up development environment..." 40 ./scripts/install.sh 41 42 # Show help 43 help: 44 @echo "Kamaji Project Makefile" 45 @echo "" 46 @echo "Available targets:" 47 @echo " build - Build the Go implementation" 48 @echo " test - Run Go tests" 49 @echo " clean - Clean build artifacts" 50 @echo " install - Install the Go binary" 51 @echo " run - Build and run Kamaji" 52 @echo " dev-setup - Setup development environment" 53 @echo " help - Show this help message" 54 @echo "" 55 @echo "The Go implementation is the primary version."