Add configure option to set default make target; use it in distrib files.
authorChris Hanson <org/chris-hanson/cph>
Wed, 9 Nov 2011 05:00:33 +0000 (21:00 -0800)
committerChris Hanson <org/chris-hanson/cph>
Wed, 9 Nov 2011 05:00:33 +0000 (21:00 -0800)
dist/make-native-files
src/Makefile.in
src/configure.ac

index b4a1f40d7406cf921ddb0f5e211550b352f165c3..9e9b263768ad185ac968a9f4818371077322a579 100755 (executable)
@@ -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}
index abda45d3b461e4fb3837d73cf8f1267da3491d9c..96fa0a86587ac6e4d626cb4047d4394c0089dcce 100644 (file)
@@ -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
index 004413ab2a25129ef830a4db0a9331be0ed563ec..5298d576466e2569ccdc8362cc6e600884764115 100644 (file)
@@ -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])