From 54f080b7686a95bed2a8ab5be1cc0c0fb494f74a Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Tue, 8 Nov 2011 21:00:33 -0800 Subject: [PATCH] Add configure option to set default make target; use it in distrib files. --- dist/make-native-files | 5 +++-- src/Makefile.in | 4 +++- src/configure.ac | 6 ++++++ 3 files changed, 12 insertions(+), 3 deletions(-) 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]) -- 2.25.1