Skip to content

Commit

Permalink
xpadneo, installer: Use the new make infrastructure
Browse files Browse the repository at this point in the history
Closes: #323
Signed-off-by: Kai Krakow <[email protected]>
  • Loading branch information
kakra committed Dec 23, 2024
1 parent b418e9f commit 5eb4396
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
7 changes: 2 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,8 @@ if [[ ! -d /sys/devices/virtual/misc/uhid ]]; then

fi

echo "* creating dkms.conf"
make -C hid-xpadneo "${MAKE_OPTS[@]}" dkms.conf

echo "* registering module"
dkms add "${V[@]}" "hid-xpadneo" || maybe_already_installed
echo "* deploying DKMS package"
make "${MAKE_OPTS[@]}" VERSION="${VERSION}" install || maybe_already_installed

echo "* building module"
dkms build "${V[@]}" "hid-xpadneo/${VERSION}" || cat_dkms_make_log
Expand Down
8 changes: 1 addition & 7 deletions uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,5 @@ echo "found ${#INSTALLED[@]} registered instance(s) on your system"

# NOTE: overrides VERSION from lib/installer.sh but we don't need it
for VERSION in "${INSTALLED[@]}"; do
echo "* ${VERSION}"

echo " * uninstalling and removing ${VERSION}"
dkms remove "${V[*]}" "hid-xpadneo/${VERSION}" --all

echo " * removing ${VERSION} folder from /usr/src"
rm --recursive "${V[@]}" "/usr/src/hid-xpadneo-${VERSION}/"
make "${MAKE_OPTS[@]}" VERSION="${VERSION}" uninstall
done

0 comments on commit 5eb4396

Please sign in to comment.