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
$(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