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

Update Makefile to use $PREFIX #49

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

Update Makefile to use $PREFIX #49

wants to merge 1 commit into from

Conversation

milhnl
Copy link

@milhnl milhnl commented Nov 27, 2016

Standard prefix is /usr/local. This makes it easier for me to install it (I always override this variable for my home folder) and is also more standard.
See https://www.gnu.org/prep/standards/standards.html#Directory-Variables

Standard prefix is /usr/local. This makes it easier for me to install it (I always override this variable for my home folder) and is also more standard.
See https://www.gnu.org/prep/standards/standards.html#Directory-Variables
@embray
Copy link

embray commented May 9, 2018

I just made the exact same patch manually. This checks out.

@@ -4,12 +4,13 @@ CFLAGS := -std=c99 -Wall -pedantic -Wextra -Werror ${CFLAGS}
LDLIBS = -ljansson
INSTALL=install
DESTDIR?=/
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While at it, it might be good to make DESTDIR default to empty. Otherwise you wind up with paths beginning with // which at best is ugly, and at worst breaks on some platforms (Cygwin).

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.

2 participants