Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Don't use "missing"
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Jan 15, 2014
1 parent a38f919 commit 2e27abb
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 17 deletions.
24 changes: 11 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
# to run various types of test suites, and to remove parts of the build etc.

PIPE = build/pipestatus
MISSING = bash config/missing --run


all: start doc # indirectly depends on build
Expand Down Expand Up @@ -95,11 +94,11 @@ distclean: clean doc-clean lib-clean bdist-clean

# Delete all auto-generated files which are distributed as part of the
# source tarball
autogen-clean:
bootstrap-clean:
rm -rf config configure build/Makefile-auto.in

# Remove absolutely everything which isn't part of the git repo
maintainer-clean: distclean autogen-clean
maintainer-clean: distclean bootstrap-clean
rm -rf upstream

micro_release: bdist-clean lib-clean
Expand Down Expand Up @@ -153,17 +152,16 @@ ptestoptional: ptestall # just an alias

ptestoptionallong: ptestalllong # just an alias

config/missing:
test -d config || mkdir config
aclocal -I m4
automake --add-missing --copy build/Makefile-auto
bootstrap:
$(MAKE) configure || \
bash -c 'source src/bin/sage-env; sage-download-file $$SAGE_UPSTREAM/configure/configure-`cat build/pkgs/configure/package-version.txt`.tar.gz | tar zxmf -'

configure: configure.ac src/bin/sage-version.sh \
m4/ax_c_check_flag.m4 m4/ax_gcc_option.m4 m4/ax_gcc_version.m4 m4/ax_gxx_option.m4 m4/ax_gxx_version.m4 m4/ax_prog_perl_version.m4
test -f config/missing || $(MAKE) config/missing || \
bash -c 'source src/bin/sage-env; sage-download-file $$SAGE_UPSTREAM/configure/configure-`cat build/pkgs/configure/package-version.txt`.tar.gz | tar zxf -'
$(MISSING) aclocal -I m4
$(MISSING) autoconf
test -d config || mkdir config
aclocal -I m4
automake --add-missing --copy build/Makefile-auto
autoconf

install:
echo "Experimental use only!"
Expand All @@ -184,8 +182,8 @@ install:
"$(DESTDIR)"/bin/sage -c # Run sage-location


.PHONY: all build build-serial start install micro_release\
.PHONY: all build build-serial start install micro_release bootstrap \
doc doc-html doc-html-jsmath doc-html-mathjax doc-pdf \
doc-clean clean lib-clean bdist-clean distclean autogen-clean maintainer-clean \
doc-clean clean lib-clean bdist-clean distclean bootstrap-clean maintainer-clean \
test check testoptional testall testlong testoptionallong testallong \
ptest ptestoptional ptestall ptestlong ptestoptionallong ptestallong
6 changes: 3 additions & 3 deletions bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ CONFVERSION=`cat $PKG/package-version.txt`

bootstrap () {
# Start cleanly
$MAKE autogen-clean
$MAKE bootstrap-clean

# Generate auto-generated files (without using "missing")
$MAKE MISSING= configure
# Generate auto-generated files
$MAKE configure
}


Expand Down
2 changes: 1 addition & 1 deletion build/prereq.sh
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ if [ "x$SAGE_PORT" = x ]; then
fi

# Make sure the configure script exists
$MAKE configure || exit $?
$MAKE bootstrap || exit $?

# A reasonably sophisticated test is performed in a configure
# script, which checks compilers exist, their version numbers,
Expand Down

0 comments on commit 2e27abb

Please sign in to comment.