[6afd7c] | 1 | SHELL = /bin/sh |
---|
| 2 | |
---|
[fd4bde] | 3 | PRODUCT = Singular |
---|
[b262594] | 4 | SINGULAR_MAJOR_VERSION = @SINGULAR_MAJOR_VERSION@ |
---|
| 5 | SINGULAR_MINOR_VERSION = @SINGULAR_MINOR_VERSION@ |
---|
[fd4bde] | 6 | |
---|
[b262594] | 7 | DISTNAME = ${PRODUCT}-full-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION} |
---|
| 8 | BINDISTNAME = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.@host@ |
---|
[f890c9] | 9 | STATIC_BINDISTNAME = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.static.@host@ |
---|
[b262594] | 10 | SHAREDISTNAME = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}-share |
---|
[4c001a] | 11 | MKINSTALLDIRS = ./mkinstalldirs |
---|
[fd4bde] | 12 | |
---|
| 13 | @SET_MAKE@ |
---|
[6afd7c] | 14 | BUILD_SUBDIRS = @CONFIG_SUBDIRS@ |
---|
| 15 | SUBDIRS = @SUBDIRS@ |
---|
| 16 | |
---|
[4c001a] | 17 | prefix = @prefix@ |
---|
| 18 | exec_prefix = @exec_prefix@ |
---|
| 19 | infodir = @infodir@ |
---|
| 20 | datadir = @datadir@ |
---|
| 21 | bindir = @bindir@ |
---|
| 22 | |
---|
[fd4bde] | 23 | TEMPDIR = /tmp |
---|
| 24 | |
---|
| 25 | |
---|
[6afd7c] | 26 | all install uninstall info dvi : Makefile |
---|
| 27 | for SUBDIR in ${BUILD_SUBDIRS}; \ |
---|
| 28 | do \ |
---|
| 29 | echo ${MAKE} $@ in $${SUBDIR}; \ |
---|
| 30 | cd $${SUBDIR}; \ |
---|
| 31 | ${MAKE} $@; \ |
---|
| 32 | cd .. ;\ |
---|
| 33 | done |
---|
| 34 | |
---|
| 35 | clean distclean mostlyclean maintainer-clean: |
---|
| 36 | for SUBDIR in ${SUBDIRS}; \ |
---|
| 37 | do \ |
---|
| 38 | echo ${MAKE} $@ in $${SUBDIR}; \ |
---|
| 39 | cd $${SUBDIR}; \ |
---|
| 40 | ${MAKE} $@; \ |
---|
| 41 | cd .. ;\ |
---|
[fd4bde] | 42 | done;\ |
---|
[7863ca] | 43 | rm -rf *~ a.out core *.o .log lib bin info share include; \ |
---|
[262d47] | 44 | if test "$@" = distclean || test "$@" = maintainer-clean; then \ |
---|
[db731a] | 45 | rm -f Makefile config.cache config.log config.status TAGS* *.gz *.tar; \ |
---|
[262d47] | 46 | fi; \ |
---|
| 47 | if test "$@" = maintainer-clean; then \ |
---|
[6afd7c] | 48 | echo "This command is inteneded for maintainer use, only" ; \ |
---|
| 49 | rm -f configure ;\ |
---|
| 50 | fi |
---|
| 51 | |
---|
[fd4bde] | 52 | dist: |
---|
[4c001a] | 53 | rm -rf ${DISTNAME}.tar* ${TEMPDIR}/${DISTNAME}* |
---|
[fd4bde] | 54 | mkdir ${TEMPDIR}/${DISTNAME} |
---|
[71f0be3] | 55 | - cp -pR . ${TEMPDIR}/${DISTNAME} |
---|
[fd4bde] | 56 | cd ${TEMPDIR}/${DISTNAME}; ${MAKE} distclean; |
---|
| 57 | cd ${TEMPDIR}; tar cf ${DISTNAME}.tar ${DISTNAME} |
---|
| 58 | rm -rf ${TEMPDIR}/${DISTNAME} |
---|
[71f0be3] | 59 | - gzip -9 ${TEMPDIR}/${DISTNAME}.tar |
---|
[fd4bde] | 60 | - mv ${TEMPDIR}/${DISTNAME}.tar.gz . |
---|
| 61 | |
---|
[4c001a] | 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 ;\ |
---|
[f890c9] | 69 | /bin/rm -f febase.o misc.o Singular; \ |
---|
| 70 | touch *.inc *.o;\ |
---|
[4c001a] | 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 | |
---|
[f890c9] | 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 | |
---|
[0164d0] | 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 | |
---|
[4c001a] | 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: |
---|
[f890c9] | 134 | cd Singular; ${MAKE} Singular |
---|
| 135 | |
---|
| 136 | ${bindir}/Singular-static : |
---|
| 137 | cd Singular; ${MAKE} Singular-static |
---|
[4c001a] | 138 | |
---|
[0164d0] | 139 | Singular/Singular.exe: |
---|
| 140 | ./configure.dos |
---|
| 141 | ${MAKE} clean |
---|
| 142 | ${MAKE} install |
---|
| 143 | |
---|
[1464283] | 144 | Singular factory libfac MP gmp: |
---|
| 145 | cd $@; ${MAKE} all |
---|
| 146 | |
---|
| 147 | check: |
---|
| 148 | cd Singular; ${MAKE} check |
---|
[0164d0] | 149 | |
---|
[6afd7c] | 150 | Makefile : Makefile.in config.status |
---|
| 151 | ./config.status |
---|
| 152 | |
---|
| 153 | config.status : configure |
---|
| 154 | ./config.status --recheck |
---|
| 155 | |
---|
| 156 | configure: configure.in |
---|
[5615cd9] | 157 | @echo "You need to rerun autoconf. I am proceeding, for now." |
---|
| 158 | @touch configure |
---|
[9e5e191] | 159 | # autoconf |
---|
| 160 | # |
---|