#!/bin/bash # Butchunker GTK Clean Script SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" PROJECT_ROOT="$(dirname "$SCRIPT_DIR")" BUILD_DIR="$PROJECT_ROOT/build" # Remove build directory if it exists if [ -d "$BUILD_DIR" ]; then rm -rf "$BUILD_DIR" fi # Also clean any other generated files # Remove CMake cache files if they exist outside build directory if [ -f "$PROJECT_ROOT/CMakeCache.txt" ]; then rm -f "$PROJECT_ROOT/CMakeCache.txt" fi if [ -d "$PROJECT_ROOT/CMakeFiles" ]; then rm -rf "$PROJECT_ROOT/CMakeFiles" fi if [ -f "$PROJECT_ROOT/cmake_install.cmake" ]; then rm -f "$PROJECT_ROOT/cmake_install.cmake" fi if [ -f "$PROJECT_ROOT/Makefile" ]; then rm -f "$PROJECT_ROOT/Makefile" fi