summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid King <davidk@gnome.org>2013-07-09 14:13:51 +0100
committerDavid King <davidk@gnome.org>2013-09-05 14:33:44 +0100
commitf0efdc9593cb379fe34c00e95337eb3353ab4a2e (patch)
tree94fb6a413dd63938c5b3b46922157814d010f118
parent92845578135685bbc72ef09fb27b7b5addc0f347 (diff)
downloadgnome-logs-f0efdc9593cb379fe34c00e95337eb3353ab4a2e.tar.gz
Add desktop file
-rw-r--r--.gitignore2
-rw-r--r--Makefile.am22
-rw-r--r--configure.ac2
-rw-r--r--data/gnome-logs.desktop.in11
-rw-r--r--po/POTFILES.in1
5 files changed, 35 insertions, 3 deletions
diff --git a/.gitignore b/.gitignore
index 09553ab..36ad7c7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,7 +3,9 @@ Makefile
/Makefile.in
/autom4te.cache/
/build-aux/
+/data/gnome-logs.desktop
/m4/
+/po/Makefile.in.in
/aclocal.m4
/config.*
/configure
diff --git a/Makefile.am b/Makefile.am
index 8b2b281..4b8d43b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -27,14 +27,29 @@ noinst_gnome_logs_headers = \
src/gl-eventview.h \
src/gl-window.h
+%/.dstamp:
+ $(AM_V_at)$(MKDIR_P) $(@D)
+ $(AM_V_at)touch $@
+
+@INTLTOOL_DESKTOP_RULE@
+desktopdir = $(datadir)/applications
+desktop_in_files = data/gnome-logs.desktop.in
+$(desktop_in_files:.desktop.in=.desktop): data/.dstamp
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+
dist_noinst_DATA = \
- $(noinst_gnome_logs_headers)
+ $(noinst_gnome_logs_headers) \
+ $(desktop_in_files)
dist_noinst_SCRIPTS = \
autogen.sh
dist-hook: git-changelog-hook
+clean-local: clean-local-dstamp
+clean-local-dstamp:
+ -rm -f data/.dstamp
+
git-changelog-hook:
$(AM_V_at)if $(top_srcdir)/build-aux/missing --run git \
--git-dir=$(top_srcdir)/.git --work-tree=$(top_srcdir) log \
@@ -43,6 +58,9 @@ git-changelog-hook:
then mv -f .ChangeLog.tmp "$(top_distdir)/ChangeLog"; \
else rm -f .ChangeLog.tmp; exit 1; fi
+CLEANFILES = \
+ $(desktop_DATA)
+
MAINTAINERCLEANFILES = \
build-aux/compile \
build-aux/config.guess \
@@ -54,4 +72,4 @@ MAINTAINERCLEANFILES = \
config.h.in \
mkinstalldirs
-.PHONY: git-changelog-hook
+.PHONY: clean-local-dstamp git-changelog-hook
diff --git a/configure.ac b/configure.ac
index 7fd445e..51974b3 100644
--- a/configure.ac
+++ b/configure.ac
@@ -8,7 +8,7 @@ AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([src/gl-main.c])
AC_CONFIG_MACRO_DIR([m4])
-AM_INIT_AUTOMAKE([1.11 -Wall dist-xz no-define no-dist-gzip subdir-objects])
+AM_INIT_AUTOMAKE([1.11 -Wall -Wno-portability dist-xz no-define no-dist-gzip subdir-objects])
AM_MAINTAINER_MODE([enable])
AM_SILENT_RULES([yes])
diff --git a/data/gnome-logs.desktop.in b/data/gnome-logs.desktop.in
new file mode 100644
index 0000000..f89d38e
--- /dev/null
+++ b/data/gnome-logs.desktop.in
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Logs
+_GenericName=Log Viewer
+_Comment=View detailed event logs for the system
+# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
+_Keywords=log;journal;debug;error;
+Type=Application
+Categories=GTK;GNOME;System;Monitor;
+Exec=easytag %F
+Terminal=false
+StartupNotify=true
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 5bd3575..e42b382 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,2 +1,3 @@
+data/gnome-logs.desktop.in
src/gl-categorylist.c
src/gl-window.c