gnucash/intl-scm/Makefile.am
Mike Alexander 0288b5f69b If the build directory is not the source directory and the source directory
is read only, the build fails.  Fix by only making guile-strings.c if 
building from SVN.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@19927 57a11ea4-9604-0410-9ed3-97b8803252fd
2010-12-12 06:45:37 +00:00

22 lines
529 B
Makefile

abs_top_srcdir=@abs_top_srcdir@
EXTRA_DIST = \
guile-strings.c \
xgettext.scm
# Cause automake to generate correct rules
# for maintainers
noinst_HEADERS = guile-strings.c
BUILT_SOURCES = guile-strings.c
SCMFILES = $(shell find ${abs_top_srcdir}/src -name test -prune -o -name '*.scm' -print | sort)
if BUILDING_FROM_SVN
# This needs to be generated in srcdir
guile-strings.c: $(SCMFILES)
rm -f guile-strings.c
cd ${srcdir} && rm -f guile-strings.c \
&& ${GUILE} -s ./xgettext.scm ${abs_top_srcdir} $(SCMFILES)
endif