[cheese] Substitute bindir and libexecdir in Makefile.am
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Substitute bindir and libexecdir in Makefile.am
- Date: Sat, 25 Oct 2014 11:25:03 +0000 (UTC)
commit 284e968a5c0bfc90cfc680661169f7b1051d63c9
Author: David King <amigadave amigadave com>
Date: Sat Oct 25 12:20:36 2014 +0100
Substitute bindir and libexecdir in Makefile.am
Rather than substituting the values of libexecdir and bindir during
configure, which might include some unexpanded shell variables, expand
and substitute them as targets in Makefile.am instead.
https://bugzilla.gnome.org/show_bug.cgi?id=726095
Makefile.am | 17 +++++++++++++----
configure.ac | 2 --
2 files changed, 13 insertions(+), 6 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index cd93049..1db07f1 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -367,10 +367,17 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
appstream_in_files = data/org.gnome.Cheese.appdata.xml.in
appstream_XML = $(appstream_in_files:.appdata.xml.in=.appdata.xml)
+data/org.gnome.Cheese.service: data/org.gnome.Cheese.service.in
+ $(AM_V_GEN)$(SED) -e "s|[ ]bindir[@]|$(bindir)|" $< > $@
+
+data/org.gnome.Camera.service: data/org.gnome.Camera.service.in
+ $(AM_V_GEN)$(SED) -e "s|[ ]libexecdir[@]|$(libexecdir)|" $< > $@
+
servicedir = $(datadir)/dbus-1/services
-service_DATA = \
- data/org.gnome.Camera.service \
- data/org.gnome.Cheese.service
+service_in_files = \
+ data/org.gnome.Camera.service.in \
+ data/org.gnome.Cheese.service.in
+service_DATA = $(service_in_files:.service.in=.service)
@GSETTINGS_RULES@
gsettings_SCHEMAS = data/org.gnome.Cheese.gschema.xml
@@ -534,11 +541,12 @@ dist-hook: git-changelog-hook
dist_noinst_DATA = \
ChangeLog.pre-git \
COPYING.GPL3 \
+ $(appstream_in_files) \
$(desktop_in_files) \
$(gsettings_SCHEMAS) \
$(noinst_gnome_camera_service_headers) \
$(noinst_resource_files) \
- $(appstream_in_files) \
+ $(service_in_files) \
data/org.gnome.Cheese.gresource.xml \
data/org.gnome.Camera.xml \
build-aux/test-driver \
@@ -566,6 +574,7 @@ CLEANFILES = \
$(pkgconfig_DATA) \
$(enum_data) \
$(gir_DATA) \
+ $(service_DATA) \
$(typelib_DATA) \
$(nodist_gnome_camera_service_headers) \
$(nodist_gnome_camera_service_SOURCES) \
diff --git a/configure.ac b/configure.ac
index dc1aff8..bfe2b11 100644
--- a/configure.ac
+++ b/configure.ac
@@ -215,9 +215,7 @@ docs/reference/Makefile
docs/reference/version.xml
data/cheese.pc
data/cheese-gtk.pc
-data/org.gnome.Camera.service
data/org.gnome.Cheese.desktop.in
-data/org.gnome.Cheese.service
help/Makefile
po/Makefile.in
])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]