@IF_X11@all-native: all-x11
@IF_X11_SCREEN@all-native: all-x11-screen
+# Plugins all depend on this target to make sure that they can use it
+# to compile themselves.
+.PHONY: all-toolchain
+all-toolchain: microcode/scheme
+all-toolchain: lib/runtime.com
+all-toolchain: lib/all.com
+all-toolchain: all-compiler
+all-toolchain: all-cref
+all-toolchain: all-ffi
+all-toolchain: all-runtime
+all-toolchain: all-sf
+all-toolchain: all-star-parser
+
# XXX This should really depend on microcode/gen-nonce and
# microcode/extract-liarc-decls instead of microcode/scheme, but
# splitting up dependencies within the microcode subdirectory is more
all-blowfish: compile-blowfish
.PHONY: compile-blowfish
-compile-blowfish: compile-runtime compile-ffi
- (cd blowfish && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-blowfish: all-toolchain
+ (cd blowfish && $(MAKE))
.PHONY: compile-blowfish-c
compile-blowfish-c:
all-edwin: compile-edwin
.PHONY: compile-edwin
-compile-edwin: compile-runtime compile-xml
+compile-edwin: all-toolchain compile-xml
@IF_BLOWFISH@compile-edwin: compile-blowfish
@IF_GDBM@compile-edwin: compile-gdbm
@IF_X11@compile-edwin: compile-x11
- (cd edwin && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+ (cd edwin && $(MAKE))
################
# gdbm
all-gdbm: compile-gdbm
.PHONY: compile-gdbm
-compile-gdbm: compile-runtime compile-ffi
- (cd gdbm && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-gdbm: all-toolchain
+ (cd gdbm && $(MAKE))
.PHONY: compile-gdbm-c
compile-gdbm-c:
all-imail: compile-imail
.PHONY: compile-imail
-compile-imail: compile-runtime compile-sos compile-edwin compile-star-parser
- (cd imail && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-imail: all-toolchain compile-sos compile-edwin
+ (cd imail && $(MAKE))
################
# mcrypt
all-mcrypt: compile-mcrypt
.PHONY: compile-mcrypt
-compile-mcrypt: compile-runtime compile-ffi
- (cd mcrypt && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-mcrypt: all-toolchain
+ (cd mcrypt && $(MAKE))
.PHONY: compile-mcrypt-c
compile-mcrypt-c:
all-pgsql: compile-pgsql
.PHONY: compile-pgsql
-compile-pgsql: compile-runtime compile-ffi
- (cd pgsql && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-pgsql: all-toolchain
+ (cd pgsql && $(MAKE))
.PHONY: compile-pgsql-c
compile-pgsql-c:
all-x11: compile-x11
.PHONY: compile-x11
-compile-x11: compile-runtime compile-ffi
- (cd x11 && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-x11: all-toolchain
+ (cd x11 && $(MAKE))
.PHONY: compile-x11-c
compile-x11-c:
all-x11-screen: compile-x11-screen
.PHONY: compile-x11-screen
-compile-x11-screen: compile-runtime compile-x11 compile-edwin
- (cd x11-screen && MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) $(MAKE))
+compile-x11-screen: all-toolchain compile-x11 compile-edwin
+ (cd x11-screen && $(MAKE))
#####################
### Cross compilation
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = autogen.sh
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
scmlibdir = @MIT_SCHEME_LIBDIR@
scmlib_subdir = $(scmlibdir)blowfish
scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
blowfish-const.c: stamp-shim
blowfish-types.bin: stamp-shim
stamp-shim: blowfish-shim.h $(cdecls)
- touch stamp-shim
echo '(generate-shim "blowfish" "#include \"blowfish-shim.h\"")' \
- | $(MIT_SCHEME_EXE) --batch-mode \
- || rm stamp-shim
+ | $(MIT_SCHEME_EXE) --batch-mode
+ echo "done" > $@
blowfish-const.bin: blowfish-const.scm
echo '(sf "blowfish-const")' | $(MIT_SCHEME_EXE) --batch-mode
@MIT_SCHEME_DEPS@
stamp-scheme: stamp-shim $(sources) blowfish.pkg
- touch stamp-scheme
- if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+ MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+ echo "done" > $@
CLEANFILES = blowfish-const* blowfish-shim.c
CLEANFILES += *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
- exit 1
fi
fi
MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
if test x"${MIT_SCHEME_LIBDIR}" = x; then
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
echo " (system-library-directory-pathname)))" ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_INCLUDEDIR}" = x; then
MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
echo " (directory-pathname" ;\
echo " (system-library-pathname" ;\
echo ' "mit-scheme.h"))))' ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_CC_TYPE}" = x; then
MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
MIT_SCHEME_PKD="blowfish-${MIT_SCHEME_OS_SUFFIX}.pkd"
docdir='$(datarootdir)/doc/$(MIT_SCHEME_PROJECT)'
AC_SUBST([MIT_SCHEME_PROJECT])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
export MIT_SCHEME_OS_SUFFIX
export MIT_SCHEME_CC_TYPE
+# Plugins use this one
+MIT_SCHEME_TOOLCHAIN_EXE=../run-build
+export MIT_SCHEME_TOOLCHAIN_EXE
+
AC_CONFIG_SUBDIRS([microcode])
if test x"${enable_blowfish}" = xyes; then
AC_CONFIG_SUBDIRS([blowfish])
EXTRA_DIST = autogen.sh
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
scmlibdir = @MIT_SCHEME_LIBDIR@
scmlib_subdir = $(scmlibdir)edwin
scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
edwin.bld: stamp-scheme
edwin-@MIT_SCHEME_OS_SUFFIX@.pkd: stamp-scheme
stamp-scheme: $(sources) edwin.ldr edwin.pkg
- touch stamp-scheme
- if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+ MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+ echo "done" > $@
CLEANFILES = *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd *.bld
CLEANFILES += stamp-scheme
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
-#
+#
# MIT/GNU Scheme is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
-#
+#
# You should have received a copy of the GNU General Public License
# along with MIT/GNU Scheme; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301,
set -e
: ${MIT_SCHEME_EXE=mit-scheme}
+echo ${MIT_SCHEME_EXE}
${MIT_SCHEME_EXE} --batch-mode <<\EOF
(begin
| ${MIT_SCHEME_EXE} --batch-mode`
report=edwin-$suffix.crf
if [ -s "$report" ]; then
+ echo "$0: warning: $report is not empty"
awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
fi
AC_PROG_INSTALL
MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
if test x"${MIT_SCHEME_LIBDIR}" = x; then
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
echo " (system-library-directory-pathname)))" ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
AC_SUBST([MIT_SCHEME_PROJECT])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_OS_SUFFIX])
AC_CONFIG_FILES([Makefile])
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = autogen.sh
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
scmlibdir = @MIT_SCHEME_LIBDIR@
scmlib_subdir = $(scmlibdir)gdbm
scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
gdbm-const.c: stamp-shim
gdbm-types.bin: stamp-shim
stamp-shim: gdbm-shim.h $(cdecls)
- touch stamp-shim
echo '(generate-shim "gdbm" "#include \"gdbm-shim.h\"")' \
- | $(MIT_SCHEME_EXE) --batch-mode \
- || rm stamp-shim
+ | $(MIT_SCHEME_EXE) --batch-mode
+ echo "done" > $@
gdbm-const.bin: gdbm-const.scm
echo '(sf "gdbm-const")' | $(MIT_SCHEME_EXE) --batch-mode
@MIT_SCHEME_DEPS@
stamp-scheme: stamp-shim $(sources) gdbm.pkg
- touch stamp-scheme
- if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+ MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+ echo "done" > $@
CLEANFILES = gdbm-const* gdbm-shim.c
CLEANFILES += *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
- exit 1
fi
LIBS="-lgdbm"
MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
if test x"${MIT_SCHEME_LIBDIR}" = x; then
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
echo " (system-library-directory-pathname)))" ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_INCLUDEDIR}" = x; then
MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
echo " (directory-pathname" ;\
echo " (system-library-pathname" ;\
echo ' "mit-scheme.h"))))' ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_CC_TYPE}" = x; then
MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
MIT_SCHEME_PKD="gdbm-${MIT_SCHEME_OS_SUFFIX}.pkd"
AC_SUBST([MIT_SCHEME_PROJECT])
AC_SUBST([MIT_CFLAGS])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
AC_SUBST([MIT_SCHEME_PKD])
EXTRA_DIST = autogen.sh
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
scmlibdir = @MIT_SCHEME_LIBDIR@
scmlib_subdir = $(scmlibdir)imail
scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
imap-syntax.com: stamp-scheme
imail-@MIT_SCHEME_OS_SUFFIX@.pkd: stamp-scheme
stamp-scheme: $(sources) imail.pkg
- touch stamp-scheme
- if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+ MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+ echo "done" > $@
CLEANFILES = *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
CLEANFILES += stamp-scheme
| ${MIT_SCHEME_EXE} --batch-mode`
report=imail-$suffix.crf
if [ -s "$report" ]; then
+ echo "$0: warning: $report is not empty"
awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
fi
AC_PROG_INSTALL
MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
if test x"${MIT_SCHEME_LIBDIR}" = x; then
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
echo " (system-library-directory-pathname)))" ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
# Install plugin docs in Scheme's docdir.
docdir='$(datarootdir)/doc/$(MIT_SCHEME_PROJECT)'
AC_SUBST([MIT_SCHEME_PROJECT])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_OS_SUFFIX])
AC_CONFIG_FILES([Makefile])
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = autogen.sh
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
scmlibdir = @MIT_SCHEME_LIBDIR@
scmlib_subdir = $(scmlibdir)mcrypt
scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
mcrypt-const.c: stamp-shim
mcrypt-types.bin: stamp-shim
stamp-shim: mcrypt-shim.h $(cdecls)
- touch stamp-shim
echo '(generate-shim "mcrypt" "#include \"mcrypt-shim.h\"")' \
- | $(MIT_SCHEME_EXE) --batch-mode \
- || rm stamp-shim
+ | $(MIT_SCHEME_EXE) --batch-mode
+ echo "done" > $@
mcrypt-const.bin: mcrypt-const.scm
echo '(sf "mcrypt-const")' | $(MIT_SCHEME_EXE) --batch-mode
@MIT_SCHEME_DEPS@
stamp-scheme: stamp-shim $(sources) mcrypt.pkg
- touch stamp-scheme
- if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+ MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+ echo "done" > $@
CLEANFILES = mcrypt-const* mcrypt-shim.c
CLEANFILES += *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
- exit 1
fi
LIBS="${LIBS} ${MCRYPT_LIBS}"
MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
rif test x"${MIT_SCHEME_LIBDIR}" = x; then
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
echo " (system-library-directory-pathname)))" ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_INCLUDEDIR}" = x; then
MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
echo " (directory-pathname" ;\
echo " (system-library-pathname" ;\
echo ' "mit-scheme.h"))))' ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_CC_TYPE}" = x; then
MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
MIT_SCHEME_PKD="mcrypt-${MIT_SCHEME_OS_SUFFIX}.pkd"
AC_SUBST([MIT_SCHEME_PROJECT])
AC_SUBST([MIT_CFLAGS])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
AC_SUBST([MIT_SCHEME_PKD])
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = autogen.sh
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
scmlibdir = @MIT_SCHEME_LIBDIR@
scmlib_subdir = $(scmlibdir)pgsql
scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
pgsql-const.c: stamp-shim
pgsql-types.bin: stamp-shim
stamp-shim: pgsql-shim.h $(cdecls)
- touch stamp-shim
echo '(generate-shim "pgsql" "#include \"pgsql-shim.h\"")' \
- | $(MIT_SCHEME_EXE) --batch-mode \
- || rm stamp-shim
+ | $(MIT_SCHEME_EXE) --batch-mode
+ echo "done" > $@
pgsql-const.bin: pgsql-const.scm
echo '(sf "pgsql-const")' | $(MIT_SCHEME_EXE) --batch-mode
@MIT_SCHEME_DEPS@
stamp-scheme: stamp-shim $(sources) pgsql.pkg
- touch stamp-scheme
- if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+ MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+ echo "done" > $@
CLEANFILES = pgsql-const* pgsql-shim.c
CLEANFILES += *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
- exit 1
fi
[Define to 1 if you have the <libpq-fe.h> header file.])
MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
if test x"${MIT_SCHEME_LIBDIR}" = x; then
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
echo " (system-library-directory-pathname)))" ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_INCLUDEDIR}" = x; then
MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
echo " (directory-pathname" ;\
echo " (system-library-pathname" ;\
echo ' "mit-scheme.h"))))' ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_CC_TYPE}" = x; then
MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
MIT_SCHEME_PKD="pgsql-${MIT_SCHEME_OS_SUFFIX}.pkd"
AC_SUBST([MIT_SCHEME_PROJECT])
AC_SUBST([MIT_CFLAGS])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
AC_SUBST([MIT_SCHEME_PKD])
EXTRA_DIST = autogen.sh
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
scmlibdir = @MIT_SCHEME_LIBDIR@
scmlib_subdir = $(scmlibdir)x11-screen
scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
@MIT_SCHEME_DEPS@
stamp-scheme: $(sources) x11-screen.pkg
- touch stamp-scheme
- if ! ./compile.sh; then rm stamp-scheme; exit 1; fi
+ MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
+ echo "done" > $@
CLEANFILES = *.bin *.ext *.com *.bci *.moc *.fni *.crf *.fre *.pkd
CLEANFILES += stamp-scheme
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
- exit 1
fi
AC_PROG_INSTALL
MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
if test x"${MIT_SCHEME_LIBDIR}" = x; then
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
echo " (system-library-directory-pathname)))" ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_CC_TYPE}" = x; then
MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
MIT_SCHEME_PKD="x11-screen-${MIT_SCHEME_OS_SUFFIX}.pkd"
${MIT_SCHEME_PKD}: stamp-scheme"
AC_SUBST([MIT_SCHEME_PROJECT])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_PKD])
AC_SUBST([MIT_SCHEME_SCMs])
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = autogen.sh
-MIT_SCHEME_EXE = @MIT_SCHEME_EXE@
+MIT_SCHEME_EXE = @MIT_SCHEME_TOOLCHAIN_EXE@
scmlibdir = @MIT_SCHEME_LIBDIR@
scmlib_subdir = $(scmlibdir)x11
scmdocdir = $(datarootdir)/doc/@MIT_SCHEME_PROJECT@
@MIT_SCHEME_DEPS@
stamp-scheme: stamp-shim $(sources) x11-const.bin x11.pkg
- ./compile.sh
+ MIT_SCHEME_EXE=$(MIT_SCHEME_EXE) ./compile.sh
echo "done" > $@
MOSTLYCLEANFILES = $(scmlib_LTLIBRARIES) x11-const
if [ -s "$report" ]; then
echo "$0: warning: $report is not empty"
awk "{printf \"$report:%d: %s\\n\",NR,\$0}" $report
- exit 1
fi
fi
MIT_SCHEME_PROJECT=mit-scheme
-: ${MIT_SCHEME_EXE=mit-scheme}
+: ${MIT_SCHEME_TOOLCHAIN_EXE=mit-scheme}
if test x"${MIT_SCHEME_LIBDIR}" = x; then
MIT_SCHEME_LIBDIR=`( echo "(display (->namestring" ;\
echo " (system-library-directory-pathname)))" ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_INCLUDEDIR}" = x; then
MIT_SCHEME_INCLUDEDIR=`( echo "(display (->namestring" ;\
echo " (directory-pathname" ;\
echo " (system-library-pathname" ;\
echo ' "mit-scheme.h"))))' ) \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_OS_SUFFIX}" = x; then
MIT_SCHEME_OS_SUFFIX=`echo "(display (microcode-id/operating-system-suffix))" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
if test x"${MIT_SCHEME_CC_TYPE}" = x; then
MIT_SCHEME_CC_TYPE=`echo "(display microcode-id/compiled-code-type)" \
- | ${MIT_SCHEME_EXE} --batch-mode`
+ | ${MIT_SCHEME_TOOLCHAIN_EXE} --batch-mode`
fi
MIT_SCHEME_PKD="x11-${MIT_SCHEME_OS_SUFFIX}.pkd"
AC_SUBST([MIT_CFLAGS])
AC_SUBST([MIT_LIBS])
AC_SUBST([MIT_SCHEME_PROJECT])
-AC_SUBST([MIT_SCHEME_EXE])
+AC_SUBST([MIT_SCHEME_TOOLCHAIN_EXE])
AC_SUBST([MIT_SCHEME_LIBDIR])
AC_SUBST([MIT_SCHEME_INCLUDEDIR])
AC_SUBST([MIT_SCHEME_PKD])