Changeset 64c6d1 in git for Makefile.in


Ignore:
Timestamp:
Jun 3, 1998, 12:04:30 PM (26 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '6e5adcba05493683b94648c659a729c189812c77')
Children:
88e48a8bf8bdcee21c6f8cc76efb29c06ce04a7b
Parents:
b9d3335d3643e630740a082ced8fc9b82bc915e2
Message:
* new file/dir layout of LIBs, bin, doc:
  LIB stays in-place, (new)doc moves to root, tests is removed
* LIB loading with "~"
* SearchPath is dynamically determined (see febase.cc)
* info prog is searched for in bindir
* correct handling of .singurlarrc
* env variable SINGULARHIST is used for determining history-file
* res always returns resolution
* configure is more robust (i.e., complains earlier if something is
  wrong)


git-svn-id: file:///usr/local/Singular/svn/trunk@2022 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile.in

    rb9d333 r64c6d1  
    11SHELL           = /bin/sh
    22
    3 PRODUCT         = Singular
    43SINGULAR_MAJOR_VERSION  = @SINGULAR_MAJOR_VERSION@
    54SINGULAR_MINOR_VERSION  = @SINGULAR_MINOR_VERSION@
     5SINGULAR_SUB_VERSION    = @SINGULAR_SUB_VERSION@
     6SINGULAR                = @SINGULAR@
    67
    7 DISTNAME        = ${PRODUCT}-full-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}
    8 BINDISTNAME     = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.@host@
    9 STATIC_BINDISTNAME      = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.static.@host@
    10 SHAREDISTNAME   = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}-share
    11 MKINSTALLDIRS   = ./mkinstalldirs
    128
    139@SET_MAKE@
     
    1713prefix          = @prefix@
    1814exec_prefix     = @exec_prefix@
    19 infodir         = @infodir@
    20 datadir         = @datadir@
    2115bindir          = @bindir@
    2216
     
    2418
    2519
    26 all install uninstall info dvi : Makefile
     20${SINGULAR} :
     21        ${MAKE} install
     22
     23all install uninstall : Makefile
    2724        for SUBDIR in ${BUILD_SUBDIRS}; \
    2825        do \
     
    4138                cd .. ;\
    4239        done;\
    43         rm -rf *~ a.out core *.o .log lib bin info share include; \
     40        rm -rf *~ a.out core *.o .log \
    4441        if test "$@" = distclean || test "$@" = maintainer-clean; then \
    45           rm -f Makefile config.cache config.log config.status TAGS* *.gz *.tar; \
     42          rm -rf Makefile config.cache config.log config.status TAGS* *.gz *.tar;\
    4643        fi; \
    4744        if test "$@" = maintainer-clean; then \
    48           echo "This command is inteneded for maintainer use, only" ; \
    49           rm -f configure ;\
     45          echo "This command is intended for maintainer use, only" ; \
     46          rm -rf configure;\
    5047        fi
    5148
    52 dist:
    53         rm -rf ${DISTNAME}.tar* ${TEMPDIR}/${DISTNAME}*
    54         mkdir ${TEMPDIR}/${DISTNAME}
    55         - cp -pR . ${TEMPDIR}/${DISTNAME}
    56         cd ${TEMPDIR}/${DISTNAME}; ${MAKE} distclean;
    57         cd ${TEMPDIR}; tar cf ${DISTNAME}.tar ${DISTNAME}
    58         rm -rf ${TEMPDIR}/${DISTNAME}
    59         - gzip -9 ${TEMPDIR}/${DISTNAME}.tar
    60         - mv ${TEMPDIR}/${DISTNAME}.tar.gz .
    61 
    62 bindist: ${bindir}/Singular
    63         rm -rf  ${BINDISTNAME}*
    64         if test "${datadir}" != /usr/local/share || \
    65            test "${infodir}" != /usr/local/info; then \
    66                 cd Singular ;\
    67                 mv mod2.h mod2.h.orig ;\
    68                 sed -f ../sed.bindist.cmd mod2.h.orig > mod2.h ;\
    69                 /bin/rm -f febase.o misc.o Singular; \
    70                 touch *.inc *.o;\
    71                 ${MAKE} Singular ;\
    72                 /bin/rm -f febase.o misc.o;\
    73                 mv mod2.h.orig mod2.h;\
    74         fi
    75         mv Singular/Singular ${BINDISTNAME}
    76         strip ${BINDISTNAME}
    77         gzip -9 ${BINDISTNAME}
    78 
    79 staticbindist: ${bindir}/Singular-static
    80         rm -rf  ${STATIC_BINDISTNAME}*
    81         if test "${datadir}" != /usr/local/share || \
    82            test "${infodir}" != /usr/local/info; then \
    83                 cd Singular ;\
    84                 mv mod2.h mod2.h.orig ;\
    85                 sed -f ../sed.bindist.cmd mod2.h.orig > mod2.h ;\
    86                 /bin/rm -f febase.o misc.o Singular-static; \
    87                 touch *.inc *.o;\
    88                 ${MAKE} Singular-static ;\
    89                 /bin/rm -f febase.o misc.o;\
    90                 mv mod2.h.orig mod2.h;\
    91         fi
    92         mv Singular/Singular-static ${STATIC_BINDISTNAME}
    93         strip ${STATIC_BINDISTNAME}
    94         gzip -9 ${STATIC_BINDISTNAME}
    95 
    96 dosdist: Singular/Singular.exe
    97         mkdir /tmp/singdos
    98         mkdir /tmp/singdos/Singular
    99         mkdir /tmp/singdos/Singular/info
    100         mkdir /tmp/singdos/Singular/share
    101         mkdir /tmp/singdos/Singular/share/Singular
    102         cp Singular/doc/singular.hlp /tmp/singdos/Singular/info
    103         cp Singular/Singular.exe /tmp/singdos/Singular
    104         cp Singular/LIB/*.lib /tmp/singdos/Singular/share/Singular
    105         cp -R Singular/LIB/gftables /tmp/singdos/Singular/share/Singular
    106         cp COPYING.share /tmp/singdos/Singular/COPYING
    107         cp README.dos /tmp/singdos/Singular/README
    108         cd /tmp/singdos/; zip -k -r sing Singular; cd -
    109         mv /tmp/singdos/sing.zip Singular.zip
    110         /bin/rm -rf /tmp/singdos
    111 
    112 sharedist: ${bindir}/Singular
    113         cd Singular; ${MAKE} dvi; ${MAKE} info
    114         /bin/rm -rf ${TEMPDIR}/Singular-share
    115         ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/info
    116         ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/share/Singular/doc
    117         ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/share/Singular/gftables
    118         cp Singular/LIB/*.lib ${TEMPDIR}/Singular-share/share/Singular
    119         cp Singular/LIB/gftables/[0-9]* \
    120                 ${TEMPDIR}/Singular-share/share/Singular/gftables
    121         cp Singular/doc/singular.hlp ${TEMPDIR}/Singular-share/info
    122         cp Singular/doc/singular.dvi Singular/doc/tutor.dvi \
    123                 ${TEMPDIR}/Singular-share/share/Singular/doc
    124         cd  ${TEMPDIR}/Singular-share/share/Singular/; \
    125         ln -s ../../info/singular.hlp singular.hlp
    126         cp COPYING.share README.share ${TEMPDIR}/Singular-share
    127         cd ${TEMPDIR}/Singular-share;\
    128         tar cf ${SHAREDISTNAME}.tar * ;\
    129         gzip -9 ${SHAREDISTNAME}.tar
    130         mv ${TEMPDIR}/Singular-share/${SHAREDISTNAME}.tar.gz .
    131         /bin/rm -rf ${TEMPDIR}/Singular-share
    132 
    133 ${bindir}/Singular:
    134         cd Singular; ${MAKE} Singular   
    135 
    136 ${bindir}/Singular-static :
    137         cd Singular; ${MAKE} Singular-static
    138 
    139 Singular/Singular.exe:
    140         ./configure.dos
    141         ${MAKE} clean
    142         ${MAKE} install
    14349
    14450Singular factory libfac MP gmp:
    14551        cd $@; ${MAKE} all
    14652
    147 check:
    148         cd Singular; ${MAKE} check
     53
     54info dvi ps doc doc/singular.hlp: ${SINGULAR}
     55        cd doc; ${MAKE} $@
     56
     57info/singular.hlp:
     58        cd doc; ${MAKE} install
    14959
    15060Makefile : Makefile.in config.status
Note: See TracChangeset for help on using the changeset viewer.