mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
.scm files must be copied on windows because linking won't work. Note: existing build directories will be fixed only after make clean. Patch by C. Ernst. BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17817 57a11ea4-9604-0410-9ed3-97b8803252fd
40 lines
805 B
Makefile
40 lines
805 B
Makefile
|
|
if GNC_HAVE_GUILE_WWW
|
|
|
|
# Do nothing.
|
|
|
|
else # !GNC_HAVE_GUILE_WWW
|
|
|
|
gncscmdir = ${GNC_SHAREDIR}/guile-modules/www
|
|
gncscm_DATA = cgi.scm http.scm main.scm url.scm
|
|
|
|
noinst_DATA = .scm-links
|
|
|
|
if GNUCASH_SEPARATE_BUILDDIR
|
|
SCM_FILE_LINKS = ${gncscm_DATA}
|
|
endif
|
|
|
|
.scm-links:
|
|
$(RM) -rf www
|
|
mkdir -p www
|
|
if GNUCASH_SEPARATE_BUILDDIR
|
|
for X in ${SCM_FILE_LINKS} ; do \
|
|
$(LN_S) -f ${srcdir}/$$X . ; \
|
|
done
|
|
endif
|
|
( cd www; for A in $(gncscm_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
|
|
|
|
clean-local:
|
|
$(RM) -rf www
|
|
|
|
CLEANFILES = .scm-links
|
|
DISTCLEANFILES = ${SCM_FILE_LINKS}
|
|
|
|
endif # GNC_HAVE_GUILE_WWW (else clause)
|
|
|
|
EXTRA_DIST = README README.gnucash wwwcat cgi.scm http.scm main.scm url.scm
|