xyb3rt / physlock

Lightweight linux console locking tool
GNU General Public License v2.0
303 stars 36 forks source link

Small fixes for easy build #65

Closed drdeimos closed 6 years ago

drdeimos commented 6 years ago

Hello. I noticed that the PREFIX is hardcoded and I propose to fix it, since this variable is usually set during build without Makefile change manually.

The second point is the proposal to take a VERSION from git. If the git did not work for some reason - we take it from the file VERSION.

xyb3rt commented 6 years ago

I prefer to not use any non-POSIX syntax in the Makefile, so I'll keep PREFIX as it is now. You can always overwrite it on make's command line or via its -e switch.

I've taken the git-describe version scheme in a different form: Again with no non-POSIX stuff in the Makefile and without the VERSION file, because the macro is also used in the install target.