Added a desktop icon

This commit is contained in:
Pierre Pronchery 2013-06-09 17:19:51 +02:00
parent b9a57af3b9
commit 02479f242a
5 changed files with 37 additions and 2 deletions

View File

@ -1,6 +1,6 @@
PACKAGE = Clock PACKAGE = Clock
VERSION = 0.0.0 VERSION = 0.0.0
SUBDIRS = po src SUBDIRS = data po src
RM = rm -f RM = rm -f
LN = ln -f LN = ln -f
TAR = tar -czvf TAR = tar -czvf
@ -21,6 +21,9 @@ dist:
$(RM) -r -- $(PACKAGE)-$(VERSION) $(RM) -r -- $(PACKAGE)-$(VERSION)
$(LN) -s -- . $(PACKAGE)-$(VERSION) $(LN) -s -- . $(PACKAGE)-$(VERSION)
@$(TAR) $(PACKAGE)-$(VERSION).tar.gz -- \ @$(TAR) $(PACKAGE)-$(VERSION).tar.gz -- \
$(PACKAGE)-$(VERSION)/data/Makefile \
$(PACKAGE)-$(VERSION)/data/clock-settings.desktop \
$(PACKAGE)-$(VERSION)/data/project.conf \
$(PACKAGE)-$(VERSION)/po/Makefile \ $(PACKAGE)-$(VERSION)/po/Makefile \
$(PACKAGE)-$(VERSION)/po/gettext.sh \ $(PACKAGE)-$(VERSION)/po/gettext.sh \
$(PACKAGE)-$(VERSION)/po/POTFILES \ $(PACKAGE)-$(VERSION)/po/POTFILES \

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 clock-settings.desktop $(DESTDIR)$(PREFIX)/share/applications/clock-settings.desktop
uninstall:
$(RM) -- $(DESTDIR)$(PREFIX)/share/applications/clock-settings.desktop
.PHONY: all clean distclean install uninstall

View File

@ -0,0 +1,7 @@
[Desktop Entry]
Name=Date & time settings
Comment=Set the time and date
Exec=clock
Icon=appointment-soon
Type=Application
Categories=Settings;GTK;

4
data/project.conf Normal file
View File

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

View File

@ -2,5 +2,5 @@ package=Clock
version=0.0.0 version=0.0.0
config=h,sh config=h,sh
subdirs=po,src subdirs=data,po,src
dist=Makefile,COPYING,config.h,config.sh dist=Makefile,COPYING,config.h,config.sh