Added a desktop entry for Terminal

This commit is contained in:
Pierre Pronchery 2013-02-16 22:34:09 +01:00
parent 6e2f33fbce
commit 2b3eb5dbc3
5 changed files with 38 additions and 2 deletions

View File

@ -1,6 +1,6 @@
PACKAGE = Terminal
VERSION = 0.0.0
SUBDIRS = src
SUBDIRS = data src
RM = rm -f
LN = ln -f
TAR = tar -czvf
@ -21,6 +21,9 @@ dist:
$(RM) -r -- $(PACKAGE)-$(VERSION)
$(LN) -s -- . $(PACKAGE)-$(VERSION)
@$(TAR) $(PACKAGE)-$(VERSION).tar.gz -- \
$(PACKAGE)-$(VERSION)/data/Makefile \
$(PACKAGE)-$(VERSION)/data/terminal.desktop \
$(PACKAGE)-$(VERSION)/data/project.conf \
$(PACKAGE)-$(VERSION)/src/terminal.c \
$(PACKAGE)-$(VERSION)/src/main.c \
$(PACKAGE)-$(VERSION)/src/Makefile \

21
data/Makefile Normal file
View File

@ -0,0 +1,21 @@
PREFIX = /usr/local
DESTDIR =
MKDIR = mkdir -m 0755 -p
INSTALL = install
RM = rm -f
all:
clean:
distclean: clean
install:
$(MKDIR) $(DESTDIR)$(PREFIX)/share/applications
$(INSTALL) -m 0644 -- terminal.desktop $(DESTDIR)$(PREFIX)/share/applications/terminal.desktop
uninstall:
$(RM) -- $(DESTDIR)$(PREFIX)/share/applications/terminal.desktop
.PHONY: all clean distclean install uninstall

4
data/project.conf Normal file
View File

@ -0,0 +1,4 @@
dist=Makefile,terminal.desktop
[terminal.desktop]
install=$(PREFIX)/share/applications

8
data/terminal.desktop Normal file
View File

@ -0,0 +1,8 @@
[Desktop Entry]
Name=Terminal
Comment=Terminal emulator
Exec=terminal
Icon=terminal
Type=Application
Categories=System;GTK;
StartupNotify=true

View File

@ -2,5 +2,5 @@ package=Terminal
version=0.0.0
config=h
subdirs=src
subdirs=data,src
dist=Makefile