-
Notifications
You must be signed in to change notification settings - Fork 46
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
Control output binary name with PROG variable in the Makefile #36
Conversation
Makefile
Outdated
@@ -14,15 +16,15 @@ CPPFLAGS+= -DVERSION=\"${VERSION}\" -DYANKCMD=\"${YANKCMD}\" | |||
all: yank |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be all: ${PROG}
Makefile
Outdated
@@ -14,15 +16,15 @@ CPPFLAGS+= -DVERSION=\"${VERSION}\" -DYANKCMD=\"${YANKCMD}\" | |||
all: yank | |||
|
|||
yank: yank.c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be ${PROG}: yank.c
Makefile
Outdated
|
||
clean: | ||
rm yank | ||
rm ${PROG} | ||
|
||
install: yank |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be install: ${PROG}
Looks good! I've added some inline comments needed in order to not |
Makefile
Outdated
@@ -5,6 +5,8 @@ YANKCMD= xsel | |||
PREFIX= /usr/local | |||
MANPREFIX= ${PREFIX}/share/man | |||
|
|||
PROG= yank |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indent with a single tab, not spaces.
Makefile
Outdated
@@ -14,15 +16,15 @@ CPPFLAGS+= -DVERSION=\"${VERSION}\" -DYANKCMD=\"${YANKCMD}\" | |||
all: yank | |||
|
|||
yank: yank.c | |||
${CC} ${CFLAGS} -o $@ $< ${LDFLAGS} ${CPPFLAGS} | |||
${CC} ${CFLAGS} -o ${PROG} $< ${LDFLAGS} ${CPPFLAGS} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cange $<
to yank.c
. I'm running into to the following error when applying my
suggested changes:
Using $< in a non-suffix rule context is a GNUmake idiom (Makefile:19)
On it! Thanks for the comments. |
Done! Sorry, didn't know how "deep" I should go. Build works fine on Fedora 25 x86_64. Cheers! PS. Squashed again into one commit |
Thanks! Just released v0.8.1 including your changes. |
Thank you! :) |
As discussed in issue #35