Skip to content
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

Makefile changes #47

Merged
merged 4 commits into from Jul 1, 2020
Merged

Makefile changes #47

merged 4 commits into from Jul 1, 2020

Conversation

Shub77
Copy link
Contributor

@Shub77 Shub77 commented Jun 23, 2020

These four commits change some Makefiles and add missing double quotes in dkms.conf file.
The commit messages detail the changes.

Regards

The recursive approach used before is deperecated, new one reflects the
suggested behaviour ( see
https://www.gnu.org/software/make/manual/make.html#Phony-Targets ). Now
errors in sub-makes are tracked correctly.
If make install is used more than once, an error will rise, since ln cannot
overwrite an already existing symbolic link. This is not a problem while
copying files in place, since cp -f will overwrite them anyway. Now the link
is not created if already there.
Now the copy operation to /usr/src of the needed files is performed by dkms.
This way, the module is recompiled by dkms immediately, and installed for
the running kernel. Since the modules does not need to be already compiled,
a make clean operation is performed before dkms-install/dkms-uninstall.
Since dkms will install the compiled modules in its dir tree, a make uninstall
operation is invoked too, so that only the modules compiled by dkms will remain
installed in the system. This happens on both dkms-install and dkms-uninstall.

The missing 'all' dependency was added to the install target.

The PWD variable was not appropriate, since was read by make from the shell
and never changed upon recursive make -C invocations. CURDIR variable is an
internal make variable, which is updated to reflect the real current working
directory.
@Shub77 Shub77 marked this pull request as ready for review June 23, 2020 00:25
@pkoutoupis pkoutoupis self-requested a review June 26, 2020 21:45
@pkoutoupis pkoutoupis merged commit 59271bc into pkoutoupis:master Jul 1, 2020
@pkoutoupis
Copy link
Owner

@Shub77, thank you again for your contribution to this project. It is greatly appreciated.

@Shub77 Shub77 deleted the makefile_changes branch July 11, 2020 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants