On 7 Jun., 01:19, William Stein <wst...@gmail.com> wrote:
> On Sun, Jun 6, 2010 at 4:10 PM, Dr. David Kirkby
>
> <david.kir...@onetel.net> wrote:
> > On 06/ 6/10 11:48 PM, François Bissey wrote:
>
> >> yes singular is a downright mess, upstream and in sage.
>
> > I'm glad I'm not alone in my view.
>
> I just want to clarify something again (which David already
> clarified): you guys are both talking about the build system, and I'm
> talking only about the C++ source code.   So we aren't disagreeing.

I thought in this thread we were only talking about its build system,
not the source code or Singular's quality in general.

I cannot resist to give some excerpts from just src/Singular/
Makefile.in:

##
## various programs
##
@SET_MAKE@
CC              = @CC@
LD              = @LD@
CXX             = @CXX@
LEX             = sh flexer.sh

PERL            = @PERL@
BISON           = bison
INSTALL         = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA    = @INSTALL_DATA@
MKINSTALLDIRS   = ./mkinstalldirs
LN_S            = @LN_S@

...

SOURCES=${CSOURCES} ${CXXSOURCES} \
        grammar.y scanner.l libparse.l \
        utils.cc utils.h \
        tesths.cc mpsr_Tok.cc claptmpl.cc

...

##
## Build Targets
##
.l.cc:
        @if test -r scanner.cc; then \
                touch scanner.cc ;\
        elif test "x${LEX}" = x; then \
                echo Error: no lex given, could not rebuilt scanner.cc;\
                exit 1; \
        fi
        ${LEX} -s -I -t $< > scanner.cc.lmp
        cp scanner.cc.lmp scanner.cc

.y.cc:
        @if test -r grammar.cc; then \
                touch grammar.cc ;\
        else \
        if test "x${BISON}" = x; then \
                echo Error: no bison given, could not rebuilt grammar.cc;\
                exit 1; \
        fi;\
        ${BISON} -d -t -o grammar.cc $<;\
        chmod +x testgh;\
        ./testgh;\
        fi

Note that these are all from the same file. You could also take a look
at flexer.sh...

-Leif

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to