Skip to content

Make: Added (Un) Install target#1

Closed
DanielTimLee wants to merge 1 commit intonamhyung:masterfrom
DanielTimLee:make/(un)install
Closed

Make: Added (Un) Install target#1
DanielTimLee wants to merge 1 commit intonamhyung:masterfrom
DanielTimLee:make/(un)install

Conversation

@DanielTimLee
Copy link
Copy Markdown

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 danieltimlee@gmail.com

Copy link
Copy Markdown
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.. :)

Comment thread Makefile Outdated
prefix ?= /usr/local
bindir = $(prefix)/bin
_datadir = $(prefix)/share/$(TARGET)
datadir = $(_datadir)/$(DATA)
Copy link
Copy Markdown
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
Copy Markdown
Author

Choose a reason for hiding this comment

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

changed to data.

Comment thread Makefile Outdated
gcc -o $@ $(CFLAGS) $^ $(LDFLAGS)

install: all
$(INSTALL) -m 755 $(TARGET) $(bindir)
Copy link
Copy Markdown
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
Copy Markdown
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 <danieltimlee@gmail.com>
@DanielTimLee
Copy link
Copy Markdown
Author

DanielTimLee commented Jan 20, 2019 via email

@namhyung
Copy link
Copy Markdown
Owner

Sorry for the long delay. Unfortunately I did it slightly different way while I'm working on flatpak packaging. Thanks a lot for you interest and contribution. I'm closing this.

@namhyung namhyung closed this Apr 25, 2026
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