mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
with multiple versions of the autotools suite. Make generated g-wrap sources depend on config.status. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@7837 57a11ea4-9604-0410-9ed3-97b8803252fd
47 lines
1.4 KiB
Makefile
47 lines
1.4 KiB
Makefile
|
|
lib_LTLIBRARIES = libcore-utils.la libgw-core-utils.la
|
|
|
|
gwmoddir = ${GNC_GWRAP_LIBDIR}
|
|
gwmod_DATA = gw-core-utils-spec.scm gw-core-utils.scm
|
|
|
|
libcore_utils_la_SOURCES = core-utils.c
|
|
libcore_utils_la_LDFLAGS = -module ${GLIB_LIBS}
|
|
libcore_utils_la_LIBADD =
|
|
|
|
libgw_core_utils_la_SOURCES = gw-core-utils.c
|
|
libgw_core_utils_la_LDFLAGS = -module ${G_WRAP_LINK_ARGS} ${GUILE_LIBS}
|
|
libgw_core_utils_la_LIBADD = libcore-utils.la
|
|
|
|
noinst_HEADERS = core-utils.h
|
|
|
|
EXTRA_DIST = .cvsignore gw-core-utils-spec.scm
|
|
|
|
AM_CFLAGS = ${G_WRAP_COMPILE_ARGS} ${GLIB_CFLAGS} ${GUILE_INCS}
|
|
|
|
if GNUCASH_SEPARATE_BUILDDIR
|
|
#Only needed when srcdir and builddir are different
|
|
SCM_FILE_LINKS = gw-core-utils-spec.scm
|
|
endif
|
|
|
|
.scm-links:
|
|
rm -f gnucash g-wrapped
|
|
ln -sf . gnucash
|
|
ln -sf . g-wrapped
|
|
if GNUCASH_SEPARATE_BUILDDIR
|
|
for X in ${SCM_FILE_LINKS} ; do \
|
|
ln -sf ${srcdir}/$$X . ; \
|
|
done
|
|
endif
|
|
touch .scm-links
|
|
|
|
gw-core-utils.scm gw-core-utils.h gw-core-utils.c gw-core-utils.html: \
|
|
gw-core-utils-spec.scm .scm-links ${top_builddir}/config.status
|
|
FLAVOR=gnome guile -c \
|
|
"(set! %load-path (cons \"${G_WRAP_MODULE_DIR}\" %load-path)) \
|
|
(primitive-load \"./gw-core-utils-spec.scm\") \
|
|
(gw:generate-wrapset \"gw-core-utils\")"
|
|
|
|
BUILT_SOURCES = gw-core-utils.scm gw-core-utils.h gw-core-utils.c
|
|
CLEANFILES = ${BUILT_SOURCES} gw-core-utils.html \
|
|
${SCM_FILE_LINKS} g-wrapped gnucash .scm-links
|