Ticket #2296 (closed enhancement: fixed)
Let the user to override Makefile variable without changing the Makefile
| Reported by: | ticket | Owned by: | khali |
|---|---|---|---|
| Priority: | minor | Milestone: | 3.0.1 |
| Component: | unsorted | Version: | |
| Keywords: | Makefile build | Cc: | giamby@… |
Description
Hi,
I would like to propose a little patch to the Makefile of lm-sensors.
The problem is that some linux/unix distributions (in this case I'm using GoboLinux?) let you to choose the installation dir or nearly any library or package. In the case of lm-sensors, this can be accomplished by simply editing the PREFIX variable of the Makefile. Unfortunately this is not very handy to cope with automatic tool, since they need to change the makefile. An easier way is proposed with this patch: let the user to override the PREFIX variable using system environment. All you need to change is the way you assign the variable by using the "?=" assignment operator of gnu make. Hope this make sense. giamby@…

