From 382d7b1ff670aac6d1a0e2c9dadc3fa77fcf60aa Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 14 Dec 2006 02:12:38 +0000 Subject: allow invoking from anywhere, and more overrides. git-svn-id: svn://tug.org/texlive/trunk@2729 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/Build | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'Build') diff --git a/Build/source/Build b/Build/source/Build index 8ae59a8d698..f16e5923068 100755 --- a/Build/source/Build +++ b/Build/source/Build @@ -4,6 +4,10 @@ # To build (mostly) without optimization, try CFLAGS=-g Build. # Any options given are passed along to configure. +# cd to our source directory. +mydir=`dirname $0` +cd $mydir || exit 1 + if test "x$1" != "x--no-clean"; then test -f Makefile && make clean rm -rf Work inst @@ -28,9 +32,15 @@ cd Work || exit 1 # allow override of xdvi toolkit. : ${TL_XDVI_TOOLKIT=--with-xdvi-x-toolkit=xaw} +# allow adding other configure args. +: ${TL_CONFIGURE_ARGS=} + # allow override of make program. : ${TL_MAKE=make} +# allow override of make target. +: ${TL_TARGET=world} + # and then set GNUMAKE to that, for the sake of freetype2/configure. : ${GNUMAKE=${TL_MAKE}} export GNUMAKE @@ -42,5 +52,6 @@ export GNUMAKE --prefix=$TL_INSTALL_DEST \ --datadir=$TL_INSTALL_DEST \ $TL_XDVI_TOOLKIT \ + $TL_CONFIGURE_ARGS \ "$@" \ - && time $TL_MAKE world) + && time $TL_MAKE $TL_TARGET) -- cgit v1.2.3