Makefile: Add installation of *.desktop file

This commit is contained in:
Olaf Schulz 2020-06-10 22:28:10 +02:00
parent 8ccde0ce25
commit be464bfcf5
3 changed files with 5 additions and 2 deletions

0
Keyboard_Layout_Viewer.desktop Executable file → Normal file
View File

View File

@ -220,12 +220,14 @@ install: man
install -D -m 0644 $(ASSET_FILE) "$(DATADIR)/$(APPNAME)/$(ASSET_FILE)" ; )
install -d $(PREFIX)/share/man/man1/
install -t $(PREFIX)/share/man/man1/ man/neo_layout_viewer.1.gz
install -D -t $(PREFIX)/share/applications/ Keyboard_Layout_Viewer.desktop
uninstall:
@rm -fv "$(EXEC_PREFIX)/bin/$(BINNAME)$(BINEXT)"
@test -d "$(DATADIR)/$(APPNAME)/assets" && rm -v -r "$(DATADIR)/$(APPNAME)"
# Prefixed with test because of dangerous -r-flag...
@rm -fv $(PREFIX)/share/man/man1/neo_layout_viewer.1.gz
@rm -v -r $(PREFIX)/share/applications/Keyboard_Layout_Viewer.desktop
# clean all build files, but not dist results.
clean:

View File

@ -74,8 +74,9 @@ Hinweise
indem Sie die Variable ICON anpassen.
* Bei Verwendung eines Programmstarters muss dieser noch auf das gewünschte Layout
angepasst werden und dann unter '/usr/share/applications' bzw.
'/usr/local/share/applications' eingefügt werden.
angepasst werden und dann unter '/usr/share/applications',
'/usr/local/share/applications' oder '~/.local/share/applications'
eingefügt werden.
Für automatisches Einblenden beim Anmelden kann der Programmstarter zusätzlich
nach /home/<user>/.config/autostart kopiert werden.