Skip to content

Commit 0082bdd

Browse files
author
Matthias Koeppe
committed
sage -b: Just use 'make sagelib-no-deps' from SAGE_ROOT, do not use build system internals
1 parent b693ea9 commit 0082bdd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bin/sage

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ sage_setup() {
287287
echo >&2 '************************************************************************'
288288
echo >&2 'It seems that you are attempting to run Sage from an unpacked source'
289289
echo >&2 'tarball, but you have not compiled it yet (or maybe the build has not'
290-
echo >&2 'finished). You should run `make` in the Sage root directory first.'
290+
echo >&2 'finished). You should run `make` in the SAGE_ROOT directory first.'
291291
echo >&2 'If you did not intend to build Sage from source, you should download'
292292
echo >&2 'a binary tarball instead. Read README.txt for more information.'
293293
echo >&2 '************************************************************************'
@@ -869,7 +869,7 @@ fi
869869
# build/bin/sage-site. See #29111.
870870

871871
build_sage() {
872-
( cd "$SAGE_ROOT/build/make" && ./install sagelib-no-deps ) || exit $?
872+
( cd "$SAGE_ROOT" && make sagelib-no-deps ) || exit $?
873873
}
874874

875875
if [[ "$1" =~ ^--notebook=.* || "$1" =~ ^-n=.* || "$1" =~ ^-notebook=.* ]] ; then
@@ -924,13 +924,13 @@ if [ "$1" = '-ba-force' -o "$1" = '--ba-force' ]; then
924924
echo
925925
echo "WARNING: 'sage --ba-force' is deprecated; use 'sage -ba' instead."
926926
echo
927-
( cd "$SAGE_ROOT/build/make" && make sagelib-clean )
927+
( cd "$SAGE_ROOT" && make sagelib-clean )
928928
build_sage
929929
exit $?
930930
fi
931931

932932
if [ "$1" = '-ba' ]; then
933-
( cd "$SAGE_ROOT/build/make" && make sagelib-clean )
933+
( cd "$SAGE_ROOT" && make sagelib-clean )
934934
build_sage
935935
exit $?
936936
fi

0 commit comments

Comments
 (0)