[polari] build: Use a globally defined APP_ID variable
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [polari] build: Use a globally defined APP_ID variable
- Date: Mon, 23 Feb 2015 05:13:59 +0000 (UTC)
commit 280681b1a4137f9f650056cb706cb023a7087054
Author: Florian Müllner <fmuellner gnome org>
Date: Mon Feb 23 00:39:59 2015 +0100
build: Use a globally defined APP_ID variable
We are standardizing on using the applicaton ID in reverse DNS notation
for all auxiliary files that comprise the application. Defining the ID
globally saves us some typing and prevents typos.
configure.ac | 2 ++
data/Makefile.am | 6 +++---
data/appdata/Makefile.am | 2 +-
3 files changed, 6 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4b07286..fbfa94f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,5 +1,7 @@
AC_INIT([polari],[3.15.3],[https://bugzilla.gnome.org/enter_bug.cgi?product=polari],[polari])
+AC_SUBST([APP_ID],[org.gnome.Polari])
+
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
diff --git a/data/Makefile.am b/data/Makefile.am
index 63d778c..d2140af 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -2,15 +2,15 @@ SUBDIRS = appdata icons
desktopdir = $(datadir)/applications
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
-desktop_in_files = org.gnome.Polari.desktop.in
+desktop_in_files = $(APP_ID).desktop.in
@INTLTOOL_DESKTOP_RULE@
servicedir = $(datadir)/dbus-1/services
service_DATA = $(service_in_files:.service.in=.service)
-service_in_files = org.gnome.Polari.service.in
+service_in_files = $(APP_ID).service.in
-org.gnome.Polari.service: org.gnome.Polari.service.in Makefile
+$(APP_ID).service: $(APP_ID).service.in Makefile
$(AM_V_GEN) sed -e "s|\ bindir\@|$(bindir)|" $< > $@
check-local:
diff --git a/data/appdata/Makefile.am b/data/appdata/Makefile.am
index bd719f7..1323cbf 100644
--- a/data/appdata/Makefile.am
+++ b/data/appdata/Makefile.am
@@ -1,7 +1,7 @@
@INTLTOOL_XML_RULE@
@APPSTREAM_XML_RULES@
-appstream_in_files = org.gnome.Polari.appdata.xml.in
+appstream_in_files = $(APP_ID).appdata.xml.in
appstream_XML = $(appstream_in_files:.xml.in=.xml)
EXTRA_DIST = $(appstream_in_files)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]