guile: include pre-snarfed code

snarfing is tricky to get to work portably with c++ code. So, for now let's just
include the pre-generated .x files and safe us a bit of time. They're not very
prone to change anyway.
This commit is contained in:
Dirk-Jan C. Binnema
2022-06-02 19:17:37 +03:00
parent a66360eda5
commit 2bb16ca7d1
4 changed files with 59 additions and 27 deletions

View File

@ -74,21 +74,22 @@ info_TEXINFOS= \
mu_guile_TEXINFOS= \
fdl.texi
BUILT_SOURCES=$(XFILES)
export CPP
snarfcxxopts= $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
SUFFIXES = .x .doc
.cc.x:
$(AM_V_GEN) $(GUILE_SNARF) -o $@ $< $(snarfcxxopts)
# we include pre-snarfed files now; see meson.build for explanation
#
# BUILT_SOURCES=$(XFILES)
# export CPP
# snarfcxxopts= $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
# SUFFIXES = .x .doc
# .cc.x:
# $(AM_V_GEN) $(GUILE_SNARF) -o $@ $< $(snarfcxxopts)
SNARF_DATA=$(XFILES)
# FIXME: GUILE_SITEDIR would be better, but that
# breaks 'make distcheck'
scmdir=${prefix}/share/guile/site/${GUILE_EFFECTIVE_VERSION}
scm_DATA=mu.scm
EXTRA_DIST=$(scm_DATA)
EXTRA_DIST=$(scm_DATA) $(SNARF_DATA)
## Add -MG to make the .x magic work with auto-dep code.
MKDEP = $(CC) -M -MG $(snarfcppopts)