Skip to content

Commit 97ecbed

Browse files
authored
Install desktop file and icon via make
1 parent 2c12111 commit 97ecbed

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: Makefile

+8
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ docdir ?= $(datarootdir)/doc/opentyrian
3535
mandir ?= $(datarootdir)/man
3636
man6dir ?= $(mandir)/man6
3737
man6ext ?= .6
38+
desktopdir ?= $(datarootdir)/applications
39+
pixmapdir ?= $(datarootdir)/pixmaps
3840

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

@@ -111,18 +113,24 @@ installdirs :
111113
mkdir -p $(DESTDIR)$(bindir)
112114
mkdir -p $(DESTDIR)$(docdir)
113115
mkdir -p $(DESTDIR)$(man6dir)
116+
mkdir -p $(DESTDIR)$(desktopdir)
117+
mkdir -p $(DESTDIR)$(pixmapdir)
114118

115119
.PHONY : install
116120
install : $(TARGET) installdirs
117121
$(INSTALL_PROGRAM) $(TARGET) $(DESTDIR)$(bindir)/
118122
$(INSTALL_DATA) NEWS README $(DESTDIR)$(docdir)/
119123
$(INSTALL_DATA) linux/man/opentyrian.6 $(DESTDIR)$(man6dir)/opentyrian$(man6ext)
124+
$(INSTALL_DATA) linux/opentyrian.desktop $(DESTDIR)$(desktopdir)/
125+
$(INSTALL_DATA) linux/icons/tyrian-32.png $(DESTDIR)$(pixmapdir)/opentyrian.png
120126

121127
.PHONY : uninstall
122128
uninstall :
123129
rm -f $(DESTDIR)$(bindir)/$(TARGET)
124130
rm -f $(DESTDIR)$(docdir)/{NEWS,README}
125131
rm -f $(DESTDIR)$(man6dir)/opentyrian$(man6ext)
132+
rm -f $(DESTDIR)$(desktopdir)/opentyrian.desktop
133+
rm -f $(DESTDIR)$(pixmapdir)/opentyrian.png
126134

127135
.PHONY : clean
128136
clean :

0 commit comments

Comments
 (0)