gnucash/lib/guile-www/Makefile.am
Christian Stimming 3fe13a6733 Bug #566567: [Win32] Do not touch .scm-links on windows - always copy scm files
.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
2009-01-14 19:59:38 +00:00

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