Skip to content

Commit

Permalink
Merge pull request #94 from TomChapple/make-install
Browse files Browse the repository at this point in the history
Define `install` and `uninstall` targets
  • Loading branch information
drhelius authored Feb 17, 2024
2 parents 4b446ad + 1752d00 commit 0fda589
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions platforms/desktop-shared/Makefile.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
prefix ?= /usr/local
exec_prefix ?= $(prefix)
bindir ?= $(exec_prefix)/bin

INSTALL ?= install
INSTALL_PROGRAM ?= $(INSTALL)
INSTALL_DATA ?= ${INSTALL} -m 644

install: $(TARGET)
$(PRE_INSTALL)

$(NORMAL_INSTALL)
$(INSTALL_PROGRAM) -D $(TARGET) $(DESTDIR)$(bindir)/$(TARGET)

$(POST_INSTALL)

uninstall:
$(PRE_UNINSTALL)

$(NORMAL_UNINSTALL)
rm $(DESTDIR)$(bindir)/$(TARGET)

$(POST_UNINSTALL)
1 change: 1 addition & 0 deletions platforms/linux/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ CPPFLAGS += `pkg-config --cflags gtk+-3.0`
LDFLAGS += `pkg-config --libs gtk+-3.0`

include ../desktop-shared/Makefile.common
include ../desktop-shared/Makefile.install

0 comments on commit 0fda589

Please sign in to comment.