mirror of
https://github.com/leozide/leocad
synced 2025-01-18 22:26:44 +01:00
Install desktop file.
This commit is contained in:
parent
e8bd56e0e0
commit
13758407eb
1 changed files with 16 additions and 1 deletions
17
Makefile
17
Makefile
|
@ -102,13 +102,28 @@ help:
|
||||||
arch:
|
arch:
|
||||||
mkdir arch
|
mkdir arch
|
||||||
|
|
||||||
install: $(BIN)
|
desktop: obj
|
||||||
|
@echo "[Desktop Entry]" > $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "Encoding=UTF-8" >> $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "Name=LeoCAD" >> $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "Comment=Create virtual LEGO models" >> $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "Comment[nb]=Lag virtuelle LEGO-modeller" >> $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "Comment[pt_BR]=Criar modelos virtuais de LEGO" >> $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "Exec=$(DESTDIR)$(PREFIX)/bin/leocad" >> $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "Terminal=false" >> $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "Type=Application" >> $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "Icon=$(DESTDIR)$(PREFIX)/share/leocad/icon256.png" >> $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "MimeType=application/vnd.leocad;application/x-ldraw;application/x-multi-part-ldraw" >> $(OBJDIR)/leocad.desktop
|
||||||
|
@echo "Categories=Development;GUIDesigner;Education;" >> $(OBJDIR)/leocad.desktop
|
||||||
|
|
||||||
|
install: $(BIN) desktop
|
||||||
install -d $(DESTDIR)$(PREFIX)/bin
|
install -d $(DESTDIR)$(PREFIX)/bin
|
||||||
install -c -m 0755 $(BIN) $(DESTDIR)$(PREFIX)/bin/
|
install -c -m 0755 $(BIN) $(DESTDIR)$(PREFIX)/bin/
|
||||||
install -d $(DESTDIR)$(PREFIX)/share/man/man1
|
install -d $(DESTDIR)$(PREFIX)/share/man/man1
|
||||||
install -c -m 0644 docs/leocad.1 $(DESTDIR)$(PREFIX)/share/man/man1/
|
install -c -m 0644 docs/leocad.1 $(DESTDIR)$(PREFIX)/share/man/man1/
|
||||||
install -d $(DESTDIR)$(PREFIX)/share/leocad
|
install -d $(DESTDIR)$(PREFIX)/share/leocad
|
||||||
install -c -m 0644 tools/icon/icon256.png $(DESTDIR)$(PREFIX)/share/leocad/
|
install -c -m 0644 tools/icon/icon256.png $(DESTDIR)$(PREFIX)/share/leocad/
|
||||||
|
install -c -m 0644 $(OBJDIR)/leocad.desktop $(DESTDIR)$(PREFIX)/share/applications/
|
||||||
|
|
||||||
binary: binary-zip binary-tgz
|
binary: binary-zip binary-tgz
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue