Skip to content

Commit

Permalink
Install desktop file and icon via make
Browse files Browse the repository at this point in the history
  • Loading branch information
AMDmi3 committed Mar 11, 2022
1 parent 2c12111 commit 97ecbed
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Expand Up @@ -35,6 +35,8 @@ docdir ?= $(datarootdir)/doc/opentyrian
mandir ?= $(datarootdir)/man
man6dir ?= $(mandir)/man6
man6ext ?= .6
desktopdir ?= $(datarootdir)/applications
pixmapdir ?= $(datarootdir)/pixmaps

# see https://www.pathname.com/fhs/pub/fhs-2.3.html

Expand Down Expand Up @@ -111,18 +113,24 @@ installdirs :
mkdir -p $(DESTDIR)$(bindir)
mkdir -p $(DESTDIR)$(docdir)
mkdir -p $(DESTDIR)$(man6dir)
mkdir -p $(DESTDIR)$(desktopdir)
mkdir -p $(DESTDIR)$(pixmapdir)

.PHONY : install
install : $(TARGET) installdirs
$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir)/
$(INSTALL_DATA) NEWS README $(DESTDIR)$(docdir)/
$(INSTALL_DATA) linux/man/opentyrian.6 $(DESTDIR)$(man6dir)/opentyrian$(man6ext)
$(INSTALL_DATA) linux/opentyrian.desktop $(DESTDIR)$(desktopdir)/
$(INSTALL_DATA) linux/icons/tyrian-32.png $(DESTDIR)$(pixmapdir)/opentyrian.png

.PHONY : uninstall
uninstall :
rm -f $(DESTDIR)$(bindir)/$(TARGET)
rm -f $(DESTDIR)$(docdir)/{NEWS,README}
rm -f $(DESTDIR)$(man6dir)/opentyrian$(man6ext)
rm -f $(DESTDIR)$(desktopdir)/opentyrian.desktop
rm -f $(DESTDIR)$(pixmapdir)/opentyrian.png

.PHONY : clean
clean :
Expand Down

0 comments on commit 97ecbed

Please sign in to comment.