From 2b3eb5dbc3b86c514df1047112b4cf22059f58d9 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 16 Feb 2013 22:34:09 +0100 Subject: [PATCH] Added a desktop entry for Terminal --- Makefile | 5 ++++- data/Makefile | 21 +++++++++++++++++++++ data/project.conf | 4 ++++ data/terminal.desktop | 8 ++++++++ project.conf | 2 +- 5 files changed, 38 insertions(+), 2 deletions(-) create mode 100644 data/Makefile create mode 100644 data/project.conf create mode 100644 data/terminal.desktop diff --git a/Makefile b/Makefile index 4a1a564..d8eb406 100644 --- a/Makefile +++ b/Makefile @@ -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 \ diff --git a/data/Makefile b/data/Makefile new file mode 100644 index 0000000..f984f49 --- /dev/null +++ b/data/Makefile @@ -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 diff --git a/data/project.conf b/data/project.conf new file mode 100644 index 0000000..7450d5a --- /dev/null +++ b/data/project.conf @@ -0,0 +1,4 @@ +dist=Makefile,terminal.desktop + +[terminal.desktop] +install=$(PREFIX)/share/applications diff --git a/data/terminal.desktop b/data/terminal.desktop new file mode 100644 index 0000000..01d4db3 --- /dev/null +++ b/data/terminal.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Terminal +Comment=Terminal emulator +Exec=terminal +Icon=terminal +Type=Application +Categories=System;GTK; +StartupNotify=true diff --git a/project.conf b/project.conf index e39432b..e54e50e 100644 --- a/project.conf +++ b/project.conf @@ -2,5 +2,5 @@ package=Terminal version=0.0.0 config=h -subdirs=src +subdirs=data,src dist=Makefile