Symlink the reports to the build directory to make it easier to use them when

running in place after a build without installing GnuCash.


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18498 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Mike Alexander 2009-12-14 05:52:22 +00:00
parent 287c85ce9d
commit daa1c8e23b

View File

@ -50,19 +50,21 @@ gncscmreportmod_DATA = \
if GNUCASH_SEPARATE_BUILDDIR if GNUCASH_SEPARATE_BUILDDIR
#For executing test cases #For executing test cases
SCM_FILE_LINKS = ${gncscmmod_DATA} SCM_FILE_LINKS = ${gncscmmod_DATA} ${gncscmreportmod_DATA}
endif endif
.scm-links: .scm-links:
$(RM) -rf gnucash $(RM) -rf gnucash
mkdir -p gnucash mkdir -p gnucash
mkdir -p gnucash/report mkdir -p gnucash/report
mkdir -p gnucash/report/standard-reports
if GNUCASH_SEPARATE_BUILDDIR if GNUCASH_SEPARATE_BUILDDIR
for X in ${SCM_FILE_LINKS} ; do \ for X in ${SCM_FILE_LINKS} ; do \
$(LN_S) -f ${srcdir}/$$X . ; \ $(LN_S) -f ${srcdir}/$$X . ; \
done done
endif endif
( cd gnucash/report; for A in $(gncscmmod_DATA) ; do $(LN_S) -f ../../$$A . ; done ) ( cd gnucash/report; for A in $(gncscmmod_DATA) ; do $(LN_S) -f ../../$$A . ; done )
( cd gnucash/report/standard-reports; for A in $(gncscmreportmod_DATA) ; do $(LN_S) -f ../../../$$A . ; done )
if ! OS_WIN32 if ! OS_WIN32
# Windows knows no "ln -s" but uses "cp": must copy every time (see bug #566567). # Windows knows no "ln -s" but uses "cp": must copy every time (see bug #566567).
touch .scm-links touch .scm-links