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

Make: Added (Un) Install target #1

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

Make: Added (Un) Install target #1

wants to merge 1 commit into from

Conversation

DanielTimLee
Copy link

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]

Copy link
Owner

@namhyung namhyung left a 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)
Copy link
Owner

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.

Copy link
Author

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)
Copy link
Owner

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.

Copy link
Author

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]>
@DanielTimLee
Copy link
Author

DanielTimLee commented Jan 20, 2019 via email

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