From: Chris Hanson Date: Wed, 9 Nov 2011 05:00:33 +0000 (-0800) Subject: Add configure option to set default make target; use it in distrib files. X-Git-Tag: release-9.1.1~2 X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=3f507adeaca78e5a8ea1099e9bf1fe5374fde313;p=mit-scheme.git Add configure option to set default make target; use it in distrib files. --- diff --git a/dist/make-native-files b/dist/make-native-files index b4a1f40d7..9e9b26376 100755 --- a/dist/make-native-files +++ b/dist/make-native-files @@ -47,8 +47,9 @@ shift 2 build () { my_configure --enable-native-code="${ARCH}" \ - --with-mcrypt=no --with-libpq=no --with-db-4=no - my_make + --with-mcrypt=no --with-libpq=no --with-db-4=no \ + --with-default-target=compile-microcode + my_make all } OUT_ROOT=${NATIVE_OUT}-${ARCH} diff --git a/src/Makefile.in b/src/Makefile.in index abda45d3b..96fa0a865 100644 --- a/src/Makefile.in +++ b/src/Makefile.in @@ -72,6 +72,8 @@ AUXDIR_NAME = @AUXDIR_NAME@ AUXDIR = @AUXDIR@ EDDIR = $(AUXDIR)/edwin +default-target: @DEFAULT_TARGET@ + all: @ALL_TARGET@ check: @@ -204,7 +206,7 @@ install-auxdir-top: $(INSTALL_DATA) $(top_srcdir)/etc/optiondb.scm $(DESTDIR)$(AUXDIR)/. $(INSTALL_DATA) lib/*.com $(DESTDIR)$(AUXDIR)/. -.PHONY: all all-native all-liarc all-svm macosx-app +.PHONY: default-target all all-native all-liarc all-svm macosx-app .PHONY: compile-microcode build-bands .PHONY: liarc-dist compile-liarc-bundles install-liarc-bundles .PHONY: mostlyclean clean distclean maintainer-clean c-clean clean-boot-root diff --git a/src/configure.ac b/src/configure.ac index 004413ab2..5298d5764 100644 --- a/src/configure.ac +++ b/src/configure.ac @@ -48,6 +48,11 @@ else : ${enable_host_scheme_test=yes} fi +AC_ARG_WITH([default-target], + AS_HELP_STRING([--with-default-target], + [Set the default make target [[all]]])) +DEFAULT_TARGET=${with_default_target=all} + AC_CANONICAL_HOST MIT_SCHEME_NATIVE_CODE([${enable_native_code}],[${host_cpu}]) @@ -133,6 +138,7 @@ directory, which is usually \`/usr/local/lib/mit-scheme-${mit_scheme_native_code fi fi +AC_SUBST([DEFAULT_TARGET]) AC_SUBST([ALL_TARGET]) AC_SUBST([FFIS]) AC_SUBST([INSTALL_COM])