Add desktop file and appropriate lines to Makefile.
This commit is contained in:
parent
bca3666862
commit
45f4f6d3c4
4
Makefile
4
Makefile
@ -41,6 +41,8 @@ clean:
|
|||||||
install: all
|
install: all
|
||||||
@echo "installing executable file to $(DESTDIR)$(PREFIX)/bin"
|
@echo "installing executable file to $(DESTDIR)$(PREFIX)/bin"
|
||||||
@install -D -m 755 sxiv $(DESTDIR)$(PREFIX)/bin/sxiv
|
@install -D -m 755 sxiv $(DESTDIR)$(PREFIX)/bin/sxiv
|
||||||
|
@echo "installing desktop file to $(DESTDIR)$(PREFIX)/share/applications"
|
||||||
|
@install -D -m 0644 sxiv.desktop $(DESTDIR)$(PREFIX)/share/applications/sxiv.desktop
|
||||||
@echo "installing manual page to $(DESTDIR)$(MANPREFIX)/man1"
|
@echo "installing manual page to $(DESTDIR)$(MANPREFIX)/man1"
|
||||||
@mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
@mkdir -p $(DESTDIR)$(MANPREFIX)/man1
|
||||||
@sed "s/VERSION/$(VERSION)/g" sxiv.1 > $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
|
@sed "s/VERSION/$(VERSION)/g" sxiv.1 > $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
|
||||||
@ -49,5 +51,7 @@ install: all
|
|||||||
uninstall:
|
uninstall:
|
||||||
@echo "removing executable file from $(DESTDIR)$(PREFIX)/bin"
|
@echo "removing executable file from $(DESTDIR)$(PREFIX)/bin"
|
||||||
@rm -f $(DESTDIR)$(PREFIX)/bin/sxiv
|
@rm -f $(DESTDIR)$(PREFIX)/bin/sxiv
|
||||||
|
@echo "removind desktop file from $(DESTDIR)$(PREFIX)/share/applications"
|
||||||
|
@rm -f $(DESTDIR)$(PREFIX)/share/applications/sxiv.desktop
|
||||||
@echo "removing manual page from $(DESTDIR)$(MANPREFIX)/man1"
|
@echo "removing manual page from $(DESTDIR)$(MANPREFIX)/man1"
|
||||||
@rm -f $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
|
@rm -f $(DESTDIR)$(MANPREFIX)/man1/sxiv.1
|
||||||
|
7
sxiv.desktop
Normal file
7
sxiv.desktop
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Type=Application
|
||||||
|
Name=sxiv
|
||||||
|
GenericName=Image Viewer
|
||||||
|
Exec=sxiv %F
|
||||||
|
MimeType=image/bmp;image/gif;image/jpeg;image/jpg;image/png;image/tiff;image/x-bmp;
|
||||||
|
NoDisplay=true
|
Loading…
Reference in New Issue
Block a user