From bfcfe9bc8b9231734db6dc01f1a781e23fa806ac Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Mon, 10 Oct 2011 09:41:10 -0700 Subject: [PATCH] Fixed portable C support. --- src/gtk-screen/Makefile-fragment | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/gtk-screen/Makefile-fragment b/src/gtk-screen/Makefile-fragment index a5acdcae7..c6835c276 100644 --- a/src/gtk-screen/Makefile-fragment +++ b/src/gtk-screen/Makefile-fragment @@ -2,13 +2,16 @@ TARGET_DIR = $(AUXDIR)/gtk-screen -generate: +# This is not an FFI, but depends on one. Nothing is generated at +# first. At "build" time the latest FFIs should be available. +# Compile-ffi is used so that `make compile-liarc-bundle' will happen +# when needed. -# @echo "Nothing to be done for \`generate'." +generate: build: - echo '(load "compile")' \ - | ../microcode/scheme --compiler --library ../lib --batch-mode + cd ../ && echo '(load "etc/compile.scm")(compile-ffi "gtk-screen")' \ + | microcode/scheme --library lib --batch-mode @if [ -s gtk-screen-unx.crf ]; then \ echo "gtk-screen-unx.crf:0: warning: non-empty"; exit 1; fi @@ -19,3 +22,6 @@ install: $(INSTALL_DATA) *.bci $(DESTDIR)$(TARGET_DIR)/. $(INSTALL_DATA) gtk-screen-*.pkd $(DESTDIR)$(TARGET_DIR)/. $(INSTALL_DATA) make.scm $(DESTDIR)$(TARGET_DIR)/. + if test `echo "(pp microcode-id/compiled-code-type)" \ + | ../microcode/scheme --library ../lib --batch-mode` = "c"; \ + then $(MAKE) install-liarc-bundle; fi -- 2.25.1