#!/bin/sh

# Cleanup script for llamaR package
# Removes compiled objects, shared libraries, and generated files

# Remove compiled objects and libraries
rm -f src/*.o src/*.so src/*.dll src/*.dylib src/*.a

# Remove model objects
rm -f src/models/*.o

# Remove generated Makevars (created by configure)
rm -f src/Makevars

# Remove R CMD check directories
rm -rf ..Rcheck
rm -rf llamaR.Rcheck

# Remove build artifacts
rm -f src/symbols.rds

# Remove installed copy and stale install lock
rm -rf /home/yuri/R/x86_64-pc-linux-gnu-library/4.3/llamaR
rm -rf /home/yuri/R/x86_64-pc-linux-gnu-library/4.3/00LOCK-llamaR
