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

Fix "make install" and "make uninstall" for distribution #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

misery
Copy link

@misery misery commented Jul 12, 2017

  • Linux distributions requires "sudo make install" by the user
    to allow the automatic build system to create a package
    as an unprivileged user.
    So the Makefile should not use "sudo" by default.

  • Add $PREFIX for "make install" to allow distribution systems
    to compile against /usr and install into a temporary package
    directory to build a distribution package.

This is used under ArchLinux:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=persosim_driver

* Linux distributions requires "sudo make install" by the user
  to allow the automatic build system to create a package
  as an unprivileged user.
  So the Makefile should not use "sudo" by default.

* Add $PREFIX for "make install" to allow distribution systems
  to compile against /usr and install into a temporary package
  directory to build a distribution package.

This is used under ArchLinux:
https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=persosim_driver
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant