* src/app-utils/Makefile.am

(gncinclude_HEADERS): add i18n.h
(EXTRA_DIST): add i18n.h.in
(i18n.h): new target.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6087 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Rob Browning 2001-11-28 22:17:40 +00:00
parent b600c9e94c
commit 2c75707e7e

View File

@ -38,6 +38,7 @@ gncinclude_HEADERS = \
gnc-ui-common.h \
gnc-ui-util.h \
guile-util.h \
i18n.h \
option-util.h
libgncmod_app_utils_la_LDFLAGS = -module
@ -75,7 +76,22 @@ EXTRA_DIST = \
.cvsignore \
${gncmod_DATA} \
${gncscm_DATA} \
${gwmod_DATA}
${gwmod_DATA} \
i18n.h.in
## We borrow guile's convention and use @-...-@ as the substitution
## brackets here, instead of the usual @...@. This prevents autoconf
## from substituting the values directly into the left-hand sides of
## the sed substitutions.
i18n.h: i18n.h.in
rm -f $@.tmp
sed < $@.in > $@.tmp \
-e 's:@-PACKAGE-@:${PACKAGE}:g' \
-e 's:@-LOCALE_DIR-@:${LOCALE_DIR}:g'
mv $@.tmp $@
# This has to be in BUILT_SOURCES because other files depend on it,
# but it's never a target itself.
BUILT_SOURCES += i18n.h
.scm-links:
rm -f gnucash g-wrapped