-
Notifications
You must be signed in to change notification settings - Fork 175
Makefile improvements #594
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,14 +33,12 @@ depmod_conf_uninstall: | |
depmod -a | ||
|
||
dracut_conf_install: | ||
set -e -x; \ | ||
if test -e $(DRACUT_CONF_DIR); then \ | ||
install -m 0644 dracut.conf $(DRACUT_CONF); \ | ||
dracut --force; \ | ||
fi | ||
|
||
dracut_conf_uninstall: | ||
set -e -x; \ | ||
if test -e $(DRACUT_CONF); then \ | ||
rm -v $(DRACUT_CONF); \ | ||
dracut --force; \ | ||
|
@@ -104,13 +102,13 @@ dkms_modules_install: dkms_check | |
dkms add . | ||
dkms build $(DKMS_MODULES) | ||
dkms install $(DKMS_MODULES) | ||
@! rmmod hid_uclogic | ||
|
||
dkms_modules_uninstall: dkms_check | ||
set -e -x; \ | ||
dkms status $(DKMS_MODULES_NAME) | \ | ||
@dkms status $(DKMS_MODULES_NAME) | \ | ||
while IFS=':' read -r modules status; do \ | ||
echo "$$modules" | { \ | ||
IFS=', ' read -r modules_name modules_version \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks! I'm curious, though, where does that change come from? Has |
||
IFS=',/ ' read -r modules_name modules_version \ | ||
kernel_version kernel_arch ignore; \ | ||
if [ -z "$$kernel_version" ]; then \ | ||
dkms remove \ | ||
|
@@ -128,5 +126,10 @@ dkms_install: dkms_modules_install depmod_conf_install dracut_conf_install udev_ | |
|
||
dkms_uninstall: tools_uninstall xorg_conf_uninstall udev_rules_uninstall dracut_conf_uninstall depmod_conf_uninstall dkms_modules_uninstall | ||
|
||
enable_debug: | ||
./digimend-debug 1 | ||
|
||
dkms_reinstall: dkms_uninstall dkms_install enable_debug | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hmm, I assume this would be useful for a development loop, to quickly test your changes. However, enabling debug shouldn't be a part of a general-purpose target. After removing it, its use for debugging becomes superficial, and you can just instead have a compound command in your history to do the same:
All-in-all, I think it's more trouble than it's worth, so could you please drop this patch? |
||
|
||
dist: | ||
git archive --format=tar.gz --prefix=$(PACKAGE)/ HEAD > $(PACKAGE).tar.gz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm hesitant about loading or unloading modules as part of (un)installation, since we don't really know which version of the module is loaded at that moment. At the very least this should be a part of an uninstall target, but I'd prefer, if you dropped this patch.