This document describes the available make commands for building, running, and maintaining the SysCapture application.
# Build the application
make build
# Start the application (builds first)
make start
# Run in development mode
make dev# Install project dependencies
make install
# Check application version
make version
# Clean build artifacts
make clean# Generate Swagger documentation
make docs# Run all tests
make test# Format code
make fmt
# Run linter
make lint
# Check for potential errors
make vet
# Run all code quality checks
make checkbuild: Compiles the application todist/syscapturestart: Builds and runs the compiled applicationdev: Runs the application directly usinggo run
install: Installs project dependenciesdeps: Alternative command for dependency installation- Updates Swagger dependencies
- Runs
go mod tidy
docs: Generates OpenAPI/Swagger documentation- Output directory:
docs/ - Processes API endpoints
- Output directory:
test: Runs all project testsfmt: Formats Go code usinggofmtlint: Runsgolintfor code style checksvet: Runsgo vetto check for common errorscheck: Runs all code quality checks (fmt, lint, vet)
version: Displays the current versionclean: Removes build artifacts and documentation
syscapture/
├── dist/ # Build output
├── client/ # Client application code
├── docs/ # Generated Swagger docs
└── api/ # API definitions
# Install dependencies
make install
# Run in development mode
make dev# Run all checks
make check
# Run tests
make test
# Build for deployment
make build# Generate fresh documentation
make docs- Commands use
@prefix for cleaner output - Most commands include status messages
- Build artifacts are placed in
dist/directory - Documentation is auto-generated from API code