File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ docdir ?= $(datarootdir)/doc/opentyrian
35
35
mandir ?= $(datarootdir ) /man
36
36
man6dir ?= $(mandir ) /man6
37
37
man6ext ?= .6
38
+ desktopdir ?= $(datarootdir ) /applications
39
+ pixmapdir ?= $(datarootdir ) /pixmaps
38
40
39
41
# see https://www.pathname.com/fhs/pub/fhs-2.3.html
40
42
@@ -111,18 +113,24 @@ installdirs :
111
113
mkdir -p $(DESTDIR )$(bindir )
112
114
mkdir -p $(DESTDIR )$(docdir )
113
115
mkdir -p $(DESTDIR )$(man6dir )
116
+ mkdir -p $(DESTDIR )$(desktopdir )
117
+ mkdir -p $(DESTDIR )$(pixmapdir )
114
118
115
119
.PHONY : install
116
120
install : $(TARGET ) installdirs
117
121
$(INSTALL_PROGRAM ) $(TARGET ) $(DESTDIR )$(bindir ) /
118
122
$(INSTALL_DATA ) NEWS README $(DESTDIR )$(docdir ) /
119
123
$(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
120
126
121
127
.PHONY : uninstall
122
128
uninstall :
123
129
rm -f $(DESTDIR )$(bindir ) /$(TARGET )
124
130
rm -f $(DESTDIR )$(docdir ) /{NEWS,README}
125
131
rm -f $(DESTDIR )$(man6dir ) /opentyrian$(man6ext )
132
+ rm -f $(DESTDIR )$(desktopdir ) /opentyrian.desktop
133
+ rm -f $(DESTDIR )$(pixmapdir ) /opentyrian.png
126
134
127
135
.PHONY : clean
128
136
clean :
You can’t perform that action at this time.
0 commit comments