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}
|
2001-06-11 02:11:37 -05:00
|
|
|
gncscmmoddir = ${GNC_SHAREDIR}/guile-modules/gnucash
|
2001-06-04 14:14:11 -05:00
|
|
|
|
2007-04-28 14:13:47 -05:00
|
|
|
gncscmmod_DATA = main.scm price-quotes.scm
|
2000-06-05 00:51:39 -05:00
|
|
|
|
|
|
|
gnc_regular_scm_files = \
|
2008-06-06 11:46:03 -05:00
|
|
|
string.scm \
|
2000-06-02 04:00:31 -05:00
|
|
|
command-line.scm \
|
|
|
|
doc.scm \
|
2002-07-11 00:17:04 -05:00
|
|
|
fin.scm \
|
2001-04-24 18:11:15 -05:00
|
|
|
main-window.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
|
|
|
|
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 \
|
2000-06-05 00:51:39 -05:00
|
|
|
startup-design.txt \
|
2001-07-03 03:46:45 -05:00
|
|
|
${SCM_FILES}
|
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
|
|
|
|
2006-08-28 10:20:29 -05:00
|
|
|
CLEANFILES = .scm-links
|
2006-02-17 14:22:54 -06:00
|
|
|
DISTCLEANFILES = ${SCM_FILE_LINKS}
|
2003-01-20 11:11:50 -06:00
|
|
|
MAINTAINERCLEANFILES = build-config.scm
|