Added a desktop entry
This commit is contained in:
parent
a826629869
commit
7b911e712e
5
Makefile
5
Makefile
|
@ -1,6 +1,6 @@
|
|||
PACKAGE = Todo
|
||||
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/todo.desktop \
|
||||
$(PACKAGE)-$(VERSION)/data/project.conf \
|
||||
$(PACKAGE)-$(VERSION)/src/todo.c \
|
||||
$(PACKAGE)-$(VERSION)/src/callbacks.c \
|
||||
$(PACKAGE)-$(VERSION)/src/main.c \
|
||||
|
|
21
data/Makefile
Normal file
21
data/Makefile
Normal file
|
@ -0,0 +1,21 @@
|
|||
PREFIX = /usr/local
|
||||
DESTDIR =
|
||||
MKDIR = mkdir -p
|
||||
INSTALL = install
|
||||
RM = rm -f
|
||||
|
||||
|
||||
all:
|
||||
|
||||
clean:
|
||||
|
||||
distclean: clean
|
||||
|
||||
install: all
|
||||
$(MKDIR) $(DESTDIR)$(PREFIX)/share/applications
|
||||
$(INSTALL) -m 0644 todo.desktop $(DESTDIR)$(PREFIX)/share/applications/todo.desktop
|
||||
|
||||
uninstall:
|
||||
$(RM) $(DESTDIR)$(PREFIX)/share/applications/todo.desktop
|
||||
|
||||
.PHONY: all clean distclean install uninstall
|
4
data/project.conf
Normal file
4
data/project.conf
Normal file
|
@ -0,0 +1,4 @@
|
|||
dist=Makefile,todo.desktop
|
||||
|
||||
[todo.desktop]
|
||||
install=$(PREFIX)/share/applications
|
8
data/todo.desktop
Normal file
8
data/todo.desktop
Normal file
|
@ -0,0 +1,8 @@
|
|||
[Desktop Entry]
|
||||
Name=Todo
|
||||
Comment=Remember what you have to do
|
||||
Exec=todo
|
||||
Icon=stock_todo
|
||||
Type=Application
|
||||
Categories=Office;GTK;
|
||||
StartupNotify=true
|
|
@ -2,5 +2,5 @@ package=Todo
|
|||
version=0.0.0
|
||||
config=h
|
||||
|
||||
subdirs=src
|
||||
subdirs=data,src
|
||||
dist=Makefile,COPYING,config.h
|
||||
|
|
Loading…
Reference in New Issue
Block a user