Skip to content

Update Makefile to use $PREFIX#49

Open
milhnl wants to merge 1 commit into
keenerd:masterfrom
milhnl:Makefile-use-PREFIX
Open

Update Makefile to use $PREFIX#49
milhnl wants to merge 1 commit into
keenerd:masterfrom
milhnl:Makefile-use-PREFIX

Conversation

@milhnl

@milhnl milhnl commented Nov 27, 2016

Copy link
Copy Markdown

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

embray commented May 9, 2018

Copy link
Copy Markdown

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

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

Copy link
Copy Markdown

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