skyview/Makefile
Ole-Morten Duesund 67d0e0612a Mark incomplete features as under construction and implement v0.0.2 release
- Mark incomplete statistics charts with construction notices
- Disable non-functional 3D radar controls
- Implement collapsible Display Options menu (defaults to collapsed)
- Add toast notifications for better error feedback
- Update version to 0.0.2 across all files and packages
- Improve Debian packaging with root-owner-group flag
- Update repository URLs to Forgejo instance
- Create comprehensive feature status documentation
- Created 10 detailed issues for all incomplete features (#5-#14)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-24 18:24:08 +02:00

102 lines
No EOL
2.2 KiB
Makefile

PACKAGE_NAME=skyview
BUILD_DIR=build
VERSION=$(shell git describe --tags --always --dirty 2>/dev/null || echo "dev")
LDFLAGS=-w -s -X main.version=$(VERSION)
.PHONY: build build-all clean run dev test lint deb deb-clean install-deps
# Build main skyview binary
build:
@echo "Building skyview..."
@mkdir -p $(BUILD_DIR)
go build -ldflags="$(LDFLAGS)" -o $(BUILD_DIR)/skyview ./cmd/skyview
# Build beast-dump utility binary
build-beast-dump:
@echo "Building beast-dump..."
@mkdir -p $(BUILD_DIR)
go build -ldflags="$(LDFLAGS)" -o $(BUILD_DIR)/beast-dump ./cmd/beast-dump
# Build all binaries
build-all: build build-beast-dump
@echo "Built all binaries successfully:"
@ls -la $(BUILD_DIR)/
clean:
@echo "Cleaning..."
@rm -rf $(BUILD_DIR)
go clean
run: build
@echo "Running $(BINARY_NAME)..."
@./$(BUILD_DIR)/$(BINARY_NAME)
dev:
@echo "Running in development mode..."
go run ./cmd/skyview
test:
@echo "Running tests..."
go test ./...
lint:
@echo "Running linter..."
@if command -v golangci-lint > /dev/null 2>&1; then \
golangci-lint run; \
else \
echo "golangci-lint not installed, skipping lint"; \
fi
# Debian package targets
deb:
@echo "Building Debian package..."
@./scripts/build-deb.sh
deb-clean:
@echo "Cleaning Debian package artifacts..."
@rm -f debian/usr/bin/skyview
@rm -rf build/*.deb
deb-install: deb
@echo "Installing Debian package..."
@if [ "$$EUID" -ne 0 ]; then \
echo "Please run as root: sudo make deb-install"; \
exit 1; \
fi
@dpkg -i build/skyview_*.deb || (apt-get update && apt-get -f install -y)
deb-remove:
@echo "Removing Debian package..."
@if [ "$$EUID" -ne 0 ]; then \
echo "Please run as root: sudo make deb-remove"; \
exit 1; \
fi
@dpkg -r skyview || true
# Docker/Podman targets
docker-build:
@echo "Building Docker image..."
docker build -t skyview .
podman-build:
@echo "Building Podman image..."
podman build -t skyview .
# Development targets
install-deps:
@echo "Installing Go dependencies..."
go mod tidy
format:
@echo "Formatting code..."
go fmt ./...
vet:
@echo "Running go vet..."
go vet ./...
# Combined quality check
check: format vet lint test
@echo "All checks passed!"
.DEFAULT_GOAL := build