[BACK]Return to TOP_Make.SH CVS log [TXT][DIR] Up to [local] / OpenXM_contrib / pari-2.2 / config

Annotation of OpenXM_contrib/pari-2.2/config/TOP_Make.SH, Revision 1.1.1.1

1.1       noro        1: file=Makefile
                      2: echo "Extracting $file"
                      3: rm -f $file
                      4:
                      5: file=Makefile.$objdir
                      6: rm -f $file
                      7:
                      8: case "$status" in
                      9:   alpha|beta|kernel) suf_status=".$status";;
                     10:   *) suf_status=;;
                     11: esac
                     12:
                     13: tar="/bin/tar"
                     14: filename=pari-$version.$patch$suf_status
                     15: tarfile=$filename.tar
                     16: ztarfile=$filename.tgz
                     17: case "`$tar 2>&1`" in
                     18:   *"--help"*) inc="-T";; # GNU
                     19:            *) inc="-I";; # Solaris
                     20: esac
                     21: tarinc="$inc $config_dir/MANIFEST"
                     22:
                     23: dbgobjdir=`echo "$objdir" | sed -e 's/\.[dbgprf]*$//'`
                     24: dbgobjdir=$dbgobjdir.dbg
                     25:
                     26: dosversion=`echo $version|sed -e 's/\.//g'`
                     27: dosversion="_$dosversion$patch"
                     28:
                     29: # MAINTAINER ONLY: for automated tests in Bordeaux
                     30: bxmachine=megrez.math.u-bordeaux.fr
                     31: bxgzip=/usr/local/bin/gzip
                     32:
                     33: cat > $file << EOT
                     34: # This file was created by Configure. All changes made will be lost
                     35: # next time Configure is run.
                     36: #
                     37: SHELL = $make_sh
                     38: RM = /bin/rm -f
                     39:
                     40: dft target::
                     41:        @echo "Possible targets are:"
                     42:        @echo " gp                       Compilation"
                     43:        @echo " bench, test-compat       Compilation and test"
                     44:        @echo " dobench                  Test only"
                     45:        @echo " doc                      Documentation"
                     46:        @echo " install                  Installation"
                     47:        @echo " clean, cleantest         Cleaning up"
                     48:        @echo "For pari maintainers..."
                     49:        @echo " all                     Compile gp-[sta|dyn] and lib-[sta|dyn]"
                     50:        @echo " gp.dbg                  Compile gp binary suitable for debugging"
                     51:        @echo " distrib                 Create a new distribution"
                     52:        @echo " ctags                   Generate VI/VIM tags file in ./src"
                     53:        @echo " etags                   Generate Emacs  tags file in ./src"
                     54:
                     55: gp all bench test-kernel test-compat test-graphic install cleanobj cleantest install-bin install-doc install-lib-sta install-bin-sta dobench::
                     56:        cd $objdir; \$(MAKE) \$@
                     57:
                     58: gp.dbg::
                     59:        cd $dbgobjdir; \$(MAKE) gp
                     60:
                     61: doc docps docpdf gpman cleandoc::
                     62:        cd doc; \$(MAKE) \$@
                     63:
                     64: clean:: cleandoc cleanobj
                     65:
                     66: setdir::
                     67:        @dir=pari-$version.$patch$suf_status; if test -d \$\$dir; then \\
                     68:           echo "Remove \$\$dir before building a new release"; exit 1;\\
                     69:        fi;\\
                     70:        mkdir \$\$dir; mv $tarfile \$\$dir; \\
                     71:        cd \$\$dir; tar xf $tarfile; \$(RM) $tarfile; cd ..; \\
                     72:        tar cf $tarfile \$\$dir; \\
                     73:        \$(RM) -r \$\$dir
                     74:
                     75: tar:
                     76:        \$(RM) $ztarfile
                     77:        $tar cf $tarfile $tarinc
                     78:
                     79: distrib: tar setdir
                     80:        gzip $tarfile
                     81:        mv $tarfile.gz $ztarfile
                     82:
                     83: dosdistrib: gpman
                     84:        -zip -kr GPB${dosversion}.ZIP GP.EXE README README.DOS ../EMX/README.DOC ../RSX/README.TXT
                     85:        -zip -k GPD${dosversion}.ZIP doc/*.tex doc/gphelp doc/gp.man examples misc/gprc* misc/gpalias
                     86:
                     87: etags:
                     88:        cd src; sh make_emacs_tags
                     89:
                     90: ctags:
                     91:        src/make_vi_tags $TOP/src
                     92:
                     93: benchbx: $ztarfile
                     94:        rcp $ztarfile pari@$bxmachine:PARINEW
                     95:        rsh $bxmachine -l pari "cd PARINEW; $bxgzip -dc $ztarfile|tar xf -; ./makeall $filename"
                     96: EOT
                     97:
                     98: $ln_s $file Makefile

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>