Skip to content

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
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