From ac0e08efce96f26d63911658dbdaecd16461f07e Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Fri, 31 May 2019 19:13:41 +0200 Subject: [PATCH 2/4] build: compile and install .go files. --- bootstrap | 6 ++++++ configure.ac | 3 ++- src/Makefile.am | 11 +++++------ 3 files changed, 13 insertions(+), 7 deletions(-) create mode 100755 bootstrap diff --git a/bootstrap b/bootstrap new file mode 100755 index 0000000..8defb5d --- /dev/null +++ b/bootstrap @@ -0,0 +1,6 @@ +#! /bin/sh + +# Create the build system. + +set -e -x +exec autoreconf -vfi diff --git a/configure.ac b/configure.ac index 0cdd9e8..811a29b 100644 --- a/configure.ac +++ b/configure.ac @@ -68,7 +68,7 @@ case "x$with_gnu_filesystem_hierarchy" in # Follow the GNU Filesystem Heirarchy Standard correctly # Installed .scm scheme libraries go here AC_MSG_CHECKING([Guile site directory]) - guilesitedir="\$(datadir)/guile/site/$guile_effective_version" + guilesitedir="\${datadir}/guile/site/$guile_effective_version" AC_MSG_RESULT([$guilesitedir]) AC_SUBST(guilesitedir) @@ -207,4 +207,5 @@ AC_CONFIG_FILES([tools/uninstalled-env], [chmod +x tools/uninstalled-env]) AC_CONFIG_FILES([tools/run-guile], [chmod +x tools/run-guile]) AC_CONFIG_FILES([tools/gdb-guile], [chmod +x tools/gdb-guile]) AC_CONFIG_FILES([tools/gdb-test], [chmod +x tools/gdb-test]) +AC_CONFIG_FILES([tools/guile-gi], [chmod +x tools/guile-gi]) AC_OUTPUT diff --git a/src/Makefile.am b/src/Makefile.am index 6c96095..2040399 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -147,25 +147,26 @@ libguile_gi_la_LIBADD = \ ################################################################ pkgguilesitedir=$(guilesitedir)/gi +pkgguileobjectdir=$(guileobjectdir)/gi dist_guilesite_DATA = \ gi.scm dist_pkgguilesite_DATA = gi/glib-2.scm gi/gtk-3.scm gi/gio-2.scm gi/webkit2-4.scm -guileobject_DATA = $(guilesite_DATA:%.scm=%.go) +pkgguileobject_DATA = $(dist_guilesite_DATA:%.scm=%.go) $(dist_pkgguilesite_DATA:%.scm=%.go) $(pkgguileobject_DATA): libguile-gi.la -GUILEC_FLAGS = -Warity-mismatch -Wformat +GUILEC_FLAGS = -Warity-mismatch -Wformat --load-path=$(PWD) .scm.go: GUILE_AUTO_COMPILE=0 \ LTDL_LIBRARY_PATH=$(abs_builddir)/.libs \ - $(GUILE) compile --target="$(host)" $(GUILEC_FLAGS) \ + $(GUILE_TOOLS) compile --target="$(host)" $(GUILEC_FLAGS) \ -o "$@" "$<" -CLEANFILES = $(guileobject_DATA) $(BUILT_SOURCES) +CLEANFILES = $(pkgguileobject_DATA) $(BUILT_SOURCES) ################################################################ # FLYMAKE @@ -175,5 +176,3 @@ check-syntax: $(CC) -std=c11 $(GUILE_CFLAGS) $(GLIB_CFLAGS) $(GOBJECT_CFLAGS) \ $(GOBJECT_INTROSPECTION_CFLAGS) $(FFI_CFLAGS) \ -DG_LOG_DOMAIN=\"GuileGI\" $(CFLAGS) -fsyntax-only $(CHK_SOURCES) - - -- 2.21.0