Skip to content

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

Open
misery wants to merge 1 commit intoPersoSim:masterfrom
misery:master
Open

Fix "make install" and "make uninstall" for distribution#2
misery wants to merge 1 commit intoPersoSim:masterfrom
misery:master

Conversation

@misery
Copy link
Copy Markdown

@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