2000-06-02 04:00:31 -05:00
|
|
|
|
2007-03-12 22:43:24 -05:00
|
|
|
SUBDIRS = gnumeric
|
2000-06-02 04:00:31 -05:00
|
|
|
|
|
|
|
gncscmdir = ${GNC_SCM_INSTALL_DIR}
|
2014-10-31 04:26:03 -05:00
|
|
|
gncscmmoddir = ${GNC_SCM_INSTALL_DIR}/gnucash
|
2001-06-04 14:14:11 -05:00
|
|
|
|
2010-04-23 16:01:23 -05:00
|
|
|
gncscmmod_DATA = main.scm price-quotes.scm printf.scm
|
2000-06-05 00:51:39 -05:00
|
|
|
|
|
|
|
gnc_regular_scm_files = \
|
2008-06-06 11:46:03 -05:00
|
|
|
string.scm \
|
2002-07-11 00:17:04 -05:00
|
|
|
fin.scm \
|
2000-06-02 04:00:31 -05:00
|
|
|
substring-search.scm \
|
2000-12-21 02:53:54 -06:00
|
|
|
xml-generator.scm
|
2000-06-02 04:00:31 -05:00
|
|
|
|
2006-02-17 14:22:54 -06:00
|
|
|
gncscm_DATA = \
|
|
|
|
build-config.scm \
|
|
|
|
${gnc_regular_scm_files}
|
2000-06-05 00:51:39 -05:00
|
|
|
|
2001-08-16 19:44:01 -05:00
|
|
|
noinst_DATA = .scm-links
|
|
|
|
|
2001-11-12 17:20:15 -06:00
|
|
|
configdir = ${GNC_CONFIGDIR}
|
|
|
|
config_DATA = config
|
|
|
|
|
2006-02-17 14:22:54 -06:00
|
|
|
if GNUCASH_SEPARATE_BUILDDIR
|
|
|
|
SCM_FILE_LINKS = \
|
|
|
|
${gncscmmod_DATA} \
|
|
|
|
${gnc_regular_scm_files}
|
|
|
|
endif
|
|
|
|
|
2001-08-16 19:44:01 -05:00
|
|
|
.scm-links:
|
2006-08-28 10:20:29 -05:00
|
|
|
$(RM) -rf gnucash
|
|
|
|
mkdir -p gnucash
|
2006-02-17 14:22:54 -06:00
|
|
|
if GNUCASH_SEPARATE_BUILDDIR
|
|
|
|
for X in ${SCM_FILE_LINKS} ; do \
|
2006-03-09 08:28:54 -06:00
|
|
|
$(LN_S) -f ${srcdir}/$$X . ; \
|
2006-02-17 14:22:54 -06:00
|
|
|
done
|
|
|
|
endif
|
2006-08-28 10:20:29 -05:00
|
|
|
( cd gnucash; for A in $(gncscmmod_DATA) ; do $(LN_S) -f ../$$A . ; done )
|
2009-01-14 13:59:38 -06:00
|
|
|
if ! OS_WIN32
|
|
|
|
# Windows knows no "ln -s" but uses "cp": must copy every time (see bug #566567).
|
2001-08-16 19:44:01 -05:00
|
|
|
touch .scm-links
|
2009-01-14 13:59:38 -06:00
|
|
|
endif
|
2001-08-16 19:44:01 -05:00
|
|
|
|
2014-10-31 04:07:10 -05:00
|
|
|
if GNC_HAVE_GUILE_2
|
|
|
|
GUILE_COMPILE_ENV = \
|
2017-08-10 06:56:00 -05:00
|
|
|
--guile-load-dir ${top_builddir}/libgnucash/core-utils \
|
|
|
|
--guile-load-dir ${top_builddir}/libgnucash/gnc-module \
|
|
|
|
--guile-load-dir ${top_builddir}/libgnucash/scm \
|
|
|
|
--library-dir ${top_builddir}/libgnucash/core-utils \
|
|
|
|
--library-dir ${top_builddir}/libgnucash/gnc-module \
|
|
|
|
--library-dir ${top_builddir}/libgnucash/engine
|
2014-10-31 04:07:10 -05:00
|
|
|
|
|
|
|
%.go : %.scm .scm-links
|
2017-08-10 06:56:00 -05:00
|
|
|
$(shell ${abs_top_srcdir}/common/gnc-test-env.pl --noexports ${GUILE_COMPILE_ENV}) \
|
2014-10-31 04:07:10 -05:00
|
|
|
$(GUILD) compile -o $@ $<
|
|
|
|
|
2015-03-30 10:30:02 -05:00
|
|
|
gncscmmodcachedir = ${pkglibdir}/scm/ccache/@GUILE_EFFECTIVE_VERSION@/gnucash
|
2014-10-31 04:07:10 -05:00
|
|
|
gncscmmodcache_DATA = $(gncscmmod_DATA:.scm=.go)
|
|
|
|
|
2015-03-30 10:30:02 -05:00
|
|
|
gncscmcachedir = ${pkglibdir}/scm/ccache/@GUILE_EFFECTIVE_VERSION@
|
2014-10-31 04:07:10 -05:00
|
|
|
gncscmcache_DATA = $(gncscm_DATA:.scm=.go)
|
|
|
|
endif
|
|
|
|
|
2006-08-28 10:20:29 -05:00
|
|
|
clean-local:
|
|
|
|
$(RM) -rf gnucash
|
|
|
|
|
2001-07-03 03:46:45 -05:00
|
|
|
SCM_FILES = ${gncscm_DATA} ${gncscmmod_DATA}
|
|
|
|
|
2000-06-05 00:51:39 -05:00
|
|
|
EXTRA_DIST = \
|
2001-12-04 17:11:41 -06:00
|
|
|
build-config.scm.in \
|
2001-11-12 17:20:15 -06:00
|
|
|
config \
|
2017-07-10 13:06:31 -05:00
|
|
|
${SCM_FILES} \
|
|
|
|
CMakeLists.txt
|
2000-06-02 04:00:31 -05:00
|
|
|
|
|
|
|
## 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. *sigh*
|
2004-04-26 10:31:15 -05:00
|
|
|
build-config.scm: ${srcdir}/build-config.scm.in Makefile
|
2000-06-02 04:00:31 -05:00
|
|
|
rm -f $@.tmp
|
2002-02-28 02:31:32 -06:00
|
|
|
sed < $< > $@.tmp \
|
2006-08-22 14:41:18 -05:00
|
|
|
-e 's#@-VERSION-@#${VERSION}#' \
|
|
|
|
-e 's#@-GNC_HELPDIR-@#${GNC_HELPDIR}#'
|
2000-06-02 04:00:31 -05:00
|
|
|
mv $@.tmp $@
|
2003-01-20 11:11:50 -06:00
|
|
|
|
2014-12-02 10:24:57 -06:00
|
|
|
CLEANFILES = .scm-links ${gncscmmodcache_DATA} ${gncscmcache_DATA}
|
|
|
|
|
2006-02-17 14:22:54 -06:00
|
|
|
DISTCLEANFILES = ${SCM_FILE_LINKS}
|
2003-01-20 11:11:50 -06:00
|
|
|
MAINTAINERCLEANFILES = build-config.scm
|