#! /bin/sh

# 'configure' generates 'src/Makevars' from 'src/Makevars.in'. Remove the
# generated file in the cleanup step so that the package sources never contain
# both 'src/Makevars.in' and 'src/Makevars' (R CMD check reports a NOTE about
# installation with '--no-configure' otherwise).
rm -f src/Makevars

# Object files cause problems on Github Actions where they get included
# in the source package that is re-generated from the original source, so
# we remove them here in the cleanup step
find src -name '*.o' -exec rm -f {} +
