gnucash/src/scm/Makefile.am

90 lines
2.3 KiB
Makefile
Raw Normal View History

SUBDIRS = gnumeric
gncscmdir = ${GNC_SCM_INSTALL_DIR}
gncscmmoddir = ${GNC_SCM_INSTALL_DIR}/gnucash
gncscmmod_DATA = main.scm price-quotes.scm printf.scm
gnc_regular_scm_files = \
string.scm \
fin.scm \
substring-search.scm \
xml-generator.scm
gncscm_DATA = \
build-config.scm \
${gnc_regular_scm_files}
noinst_DATA = .scm-links
configdir = ${GNC_CONFIGDIR}
config_DATA = config
if GNUCASH_SEPARATE_BUILDDIR
SCM_FILE_LINKS = \
${gncscmmod_DATA} \
${gnc_regular_scm_files}
endif
.scm-links:
$(RM) -rf gnucash
mkdir -p gnucash
if GNUCASH_SEPARATE_BUILDDIR
for X in ${SCM_FILE_LINKS} ; do \
$(LN_S) -f ${srcdir}/$$X . ; \
done
endif
( cd gnucash; for A in $(gncscmmod_DATA) ; do $(LN_S) -f ../$$A . ; done )
if ! OS_WIN32
# Windows knows no "ln -s" but uses "cp": must copy every time (see bug #566567).
touch .scm-links
endif
if GNC_HAVE_GUILE_2
GUILE_COMPILE_ENV = \
--guile-load-dir ${top_builddir}/src/core-utils \
--guile-load-dir ${top_builddir}/src/gnc-module \
--guile-load-dir ${top_builddir}/src/scm \
--library-dir ${top_builddir}/src/core-utils \
--library-dir ${top_builddir}/src/gnc-module \
--library-dir ${top_builddir}/src/libqof/qof
%.go : %.scm .scm-links
$(shell ${abs_top_srcdir}/src/gnc-test-env.pl --noexports ${GUILE_COMPILE_ENV}) \
$(GUILD) compile -o $@ $<
gncscmmodcachedir = ${GNC_SCM_INSTALL_DIR}/ccache/@GUILE_EFFECTIVE_VERSION@/gnucash
gncscmmodcache_DATA = $(gncscmmod_DATA:.scm=.go)
gncscmcachedir = ${GNC_SCM_INSTALL_DIR}/ccache/@GUILE_EFFECTIVE_VERSION@
gncscmcache_DATA = $(gncscm_DATA:.scm=.go)
endif
clean-local:
$(RM) -rf gnucash
SCM_FILES = ${gncscm_DATA} ${gncscmmod_DATA}
EXTRA_DIST = \
build-config.scm.in \
config \
${SCM_FILES}
## 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*
build-config.scm: ${srcdir}/build-config.scm.in Makefile
rm -f $@.tmp
sed < $< > $@.tmp \
-e 's#@-VERSION-@#${VERSION}#' \
-e 's#@-GNC_HELPDIR-@#${GNC_HELPDIR}#'
mv $@.tmp $@
2003-01-19 John Pierce <XXXXXXXXXXX> * doc/Makefile.am * src/doc/Makefile.am * src/doc/design/Makefile.am * src/experimental/cgi-bin/Makefile.am Added docs that were missing from dist. Moved doxygen clean rules to maintainer-clean. Moved texinfos to maintainer-clean. * lib/libc/Makefile.am Added sources needed for OS X to dist. * src/app-utils/Makefile.am * src/backend/postgres/Makefile.am * src/business/business-core/Makefile.am * src/business/business-gnome/Makefile.am * src/business/dialog-tax-table/Makefile.am * src/core-utils/Makefile.am * src/engine/Makefile.am * src/gnc-module/Makefile.am * src/gnc-module/test/mod-bar/Makefile.am * src/gnc-module/test/mod-baz/Makefile.am * src/gnc-module/test/mod-foo/Makefile.am * src/gnome/Makefile.am * src/gnome-search/Makefile.am * src/import-export/Makefile.am * src/import-export/binary-import/Makefile.am * src/import-export/qif-io-core/Makefile.am * src/register/register-core/Makefile.am * src/report/report-gnome/Makefile.am * src/scm/Makefile.am * src/app-file/Makefile.am * src/gnome-utils/Makefile.am Put generated headers into dist. Moved symlinks to distclean. Moved generated files to maintainer-clean. Put generated gw-.*.scm files in dist for parity. Put generated sources into dist. Moved generated source to maintainer-clean. * src/bin/overrides/Makefile Made built scripts depend on config.status to ensure they're rebuilt when paths change. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7859 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-20 11:11:50 -06:00
CLEANFILES = .scm-links ${gncscmmodcache_DATA} ${gncscmcache_DATA}
DISTCLEANFILES = ${SCM_FILE_LINKS}
2003-01-19 John Pierce <XXXXXXXXXXX> * doc/Makefile.am * src/doc/Makefile.am * src/doc/design/Makefile.am * src/experimental/cgi-bin/Makefile.am Added docs that were missing from dist. Moved doxygen clean rules to maintainer-clean. Moved texinfos to maintainer-clean. * lib/libc/Makefile.am Added sources needed for OS X to dist. * src/app-utils/Makefile.am * src/backend/postgres/Makefile.am * src/business/business-core/Makefile.am * src/business/business-gnome/Makefile.am * src/business/dialog-tax-table/Makefile.am * src/core-utils/Makefile.am * src/engine/Makefile.am * src/gnc-module/Makefile.am * src/gnc-module/test/mod-bar/Makefile.am * src/gnc-module/test/mod-baz/Makefile.am * src/gnc-module/test/mod-foo/Makefile.am * src/gnome/Makefile.am * src/gnome-search/Makefile.am * src/import-export/Makefile.am * src/import-export/binary-import/Makefile.am * src/import-export/qif-io-core/Makefile.am * src/register/register-core/Makefile.am * src/report/report-gnome/Makefile.am * src/scm/Makefile.am * src/app-file/Makefile.am * src/gnome-utils/Makefile.am Put generated headers into dist. Moved symlinks to distclean. Moved generated files to maintainer-clean. Put generated gw-.*.scm files in dist for parity. Put generated sources into dist. Moved generated source to maintainer-clean. * src/bin/overrides/Makefile Made built scripts depend on config.status to ensure they're rebuilt when paths change. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7859 57a11ea4-9604-0410-9ed3-97b8803252fd
2003-01-20 11:11:50 -06:00
MAINTAINERCLEANFILES = build-config.scm