-
Notifications
You must be signed in to change notification settings - Fork 8
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
Make: Added (Un) Install target #1
base: master
Are you sure you want to change the base?
Conversation
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.
Sorry for being late! I generaly think it's not yet ready for normal users but we can improve.. :)
Makefile
Outdated
prefix ?= /usr/local | ||
bindir = $(prefix)/bin | ||
_datadir = $(prefix)/share/$(TARGET) | ||
datadir = $(_datadir)/$(DATA) |
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.
It's not a directory so name "datadir" is not correctly.
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.
changed to data.
Makefile
Outdated
|
||
dwarview: main.c dwarview.c demangle.c | ||
gcc -o $@ $(CFLAGS) $^ $(LDFLAGS) | ||
|
||
install: all | ||
$(INSTALL) -m 755 $(TARGET) $(bindir) |
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.
I think -m 755
part has no meaning since it's the default. Also I'm not sure it works when "bindir" does not exist already.
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.
Opt out -m 755
, and added $(INSTALL) -d $(bindir)
This commit includes install, uninstall target. By (un)install target, dwarview binary will be (un)installed -> /usr/local/bin dwarview.glade will be (un)installed -> /usr/local/share/dwarview Signed-off-by: Daniel T. Lee <[email protected]>
Updated!
2019년 1월 20일 (일) 21:28, Namhyung Kim <[email protected]>님이 작성:
***@***.**** commented on this pull request.
Sorry for being late! I generaly think it's not yet ready for normal users
but we can improve.. :)
------------------------------
In Makefile
<#1 (comment)>:
> @@ -4,10 +4,28 @@ LDFLAGS := $(shell pkg-config --libs libdw gtk+-3.0)
# The -Wno-deprecated-declarations is needed due to dwarf_formref()
CFLAGS += -g -Wno-deprecated-declarations
-all: dwarview
+RM = rm -f
+INSTALL = install
+TARGET = dwarview
+DATA = $(TARGET).glade
+
+prefix ?= /usr/local
+bindir = $(prefix)/bin
+_datadir = $(prefix)/share/$(TARGET)
+datadir = $(_datadir)/$(DATA)
It's not a directory so name "datadir" is not correctly.
------------------------------
In Makefile
<#1 (comment)>:
>
dwarview: main.c dwarview.c demangle.c
gcc -o $@ $(CFLAGS) $^ $(LDFLAGS)
+install: all
+ $(INSTALL) -m 755 $(TARGET) $(bindir)
I think -m 755 part has no meaning since it's the default. Also I'm not
sure it works when "bindir" does not exist already.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1 (review)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APqSaFN4qbKuMpflTvliShsAp1jhWIlKks5vFGDogaJpZM4ZJyjT>
.
--
Daniel T. Lee
[email protected]
|
This commit includes install, uninstall target.
By (un)install target,
dwarview binary will be (un)installed -> /usr/local/bin
dwarview.glade will be (un)installed -> /usr/local/share/dwarview
Signed-off-by: Daniel T. Lee [email protected]