#!/bin/bash
set -e

# Copy lib directory to internal/preproc for embedding
echo "Copying lib directory for embedding..."
rm -rf internal/preproc/lib
cp -r lib internal/preproc/

# Build the binary
echo "Building c65gm..."
go build -o c65gm

echo "Build complete: c65gm"
