[yelp-tools] Fix 'make pot' when srcdir != builddir
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-tools] Fix 'make pot' when srcdir != builddir
- Date: Sat, 13 Jul 2013 16:17:57 +0000 (UTC)
commit c67421d646c9d1e6afc0d8095dd2a473c9881366
Author: Michael Terry <michael terry canonical com>
Date: Thu Nov 1 09:20:05 2012 +0100
Fix 'make pot' when srcdir != builddir
https://bugzilla.gnome.org/show_bug.cgi?id=655350
tools/yelp.m4 | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/tools/yelp.m4 b/tools/yelp.m4
index cb467a2..766c93b 100644
--- a/tools/yelp.m4
+++ b/tools/yelp.m4
@@ -52,7 +52,8 @@ all: $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA) $(_HELP_LC_FILES) $(_HEL
.PHONY: pot
pot: $(_HELP_POTFILE)
$(_HELP_POTFILE): $(_HELP_C_FILES) $(_HELP_C_EXTRA) $(_HELP_C_MEDIA)
- $(AM_V_GEN)$(ITSTOOL) -o "[$]@" $(_HELP_C_FILES)
+ $(AM_V_GEN)if test -d "C"; then d=; else d="$(srcdir)/"; fi; \
+ $(ITSTOOL) -o "[$]@" $(foreach f,$(_HELP_C_FILES),"$${d}$(f)")
.PHONY: repo
repo: $(_HELP_POTFILE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]