source: git/Makefile.in @ fec53d

fieker-DuValspielwiese
Last change on this file since fec53d was 8e7db4, checked in by Hans Schoenemann <hannes@…>, 14 years ago
for everybody who did not read the README git-svn-id: file:///usr/local/Singular/svn/trunk@13207 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 32.6 KB
Line 
1#################################################################
2###
3### Top-level Makefile for Singular
4###
5### The main purpose of this Makefile is to call `make'
6### recursively in the subdirectories determined at configuration
7### time.
8###
9#################################################################
10
11@SET_MAKE@
12SHELL           = /bin/sh
13
14SINGULAR        = @SINGULAR@
15
16BUILD_SUBDIRS   = @BUILD_SUBDIRS@
17BUILD1_SUBDIRS  = @BUILD1_SUBDIRS@
18SUBDIRS         = @SUBDIRS@
19
20PERL            = @PERL@
21TMP_DIR         = @TMP_DIR@
22MYGZIP          = @MYGZIP@
23GUNZIP          = @GUNZIP@
24
25##############################################################
26# default target
27${SINGULAR}:
28        ${MAKE} install
29
30##############################################################
31# general targets
32# simply descend for these targets
33.PHONY: all install uninstall install_all prepare-depend
34
35TEXINFO_TEX_FILES = epsf.tex texinfo.tex txi-cs.tex txi-de.tex txi-no.tex
36TEXINFO_TEX_DIR = Texinfo/doc
37all:
38        echo For everybody who did not read the README: use make install
39        exit 1
40
41install install_all:
42        @ for SUBDIR in ${BUILD1_SUBDIRS}; \
43        do \
44          echo ${MAKE} $@ in $${SUBDIR}; \
45          (cd $${SUBDIR} && ${MAKE} $@ ) || exit 1;\
46          (if test "$${SUBDIR}" = Texinfo && test -d doc; then \
47                for FILE in ${TEXINFO_TEX_FILES}; \
48                do \
49                  if test "$@" = uninstall; then\
50                    echo rm -f doc/$${FILE};\
51                    rm -f doc/$${FILE}; \
52                  else \
53                    echo cp ${TEXINFO_TEX_DIR}/$${FILE} doc; \
54                    cp ${TEXINFO_TEX_DIR}/$${FILE} doc; \
55                  fi; \
56                done;\
57           fi;); \
58        done
59        echo "* do not forget to install Singular-@SINGULAR_VERSION@-share.tar.gz"
60
61install-nolns:
62        @ for SUBDIR in ${BUILD1_SUBDIRS}; \
63        do \
64          echo ${MAKE} $@ in $${SUBDIR}; \
65          (cd $${SUBDIR} && ${MAKE} $@ )  || exit 1;\
66          (if test "$${SUBDIR}" = Texinfo && test -d doc; then \
67            for FILE in ${TEXINFO_TEX_FILES}; \
68            do \
69              if test "$@" = uninstall; then\
70                echo rm -f doc/$${FILE};\
71                rm -f doc/$${FILE}; \
72              else \
73                echo cp ${TEXINFO_TEX_DIR}/$${FILE} doc; \
74                cp ${TEXINFO_TEX_DIR}/$${FILE} doc; \
75              fi; \
76            done;\
77          fi;); \
78        done
79        echo "* do not forget to install Singular-@SINGULAR_VERSION@-share.tar.gz"
80
81libsingular:
82        cd Singular; ${MAKE} libsingular
83
84install-libsingular: libsingular
85        (cd Singular && ${MAKE} install-libsingular);
86        (cd kernel && ${MAKE} install-libsingular);
87        (cd omalloc && ${MAKE} install-libsingular);
88
89maintainer-install uninstall:
90        @ for SUBDIR in ${BUILD_SUBDIRS}; \
91        do \
92          echo ${MAKE} $@ in $${SUBDIR}; \
93          ( cd $${SUBDIR} && ${MAKE} $@;); \
94          (if test "$${SUBDIR}" = Texinfo && test -d doc; then \
95                for FILE in ${TEXINFO_TEX_FILES}; \
96                do \
97                  if test "$@" = uninstall; then\
98                    echo rm -f doc/$${FILE};\
99                    rm -f doc/$${FILE}; \
100                  else \
101                    echo cp ${TEXINFO_TEX_DIR}/$${FILE} doc; \
102                    cp ${TEXINFO_TEX_DIR}/$${FILE} doc; \
103                  fi; \
104                done;\
105           fi;); \
106        done
107
108install-doc:
109        cd doc; ${MAKE} install
110
111prepare-depend:
112        @ for SUBDIR in ${SUBDIRS}; \
113        do \
114        echo ${MAKE} depend in $${SUBDIR}; \
115        cd $${SUBDIR} && ${MAKE} depend;\
116        cd ..;\
117        done; \
118        for SUBDIR in kernel Singular; \
119        do \
120        sed -e 's@\([^/]\)\(omalloc.h\|factory.h\)@\1$$(includedir)/\2@g' \
121          $${SUBDIR}/depend > $${SUBDIR}/depend.tmp; \
122        mv $${SUBDIR}/depend.tmp $${SUBDIR}/depend; \
123        done;
124
125##############################################################
126# cleaning up
127.PHONY: local-clean local-distclean local-maintainer-clean \
128        clean distclean mostlyclean maintainer-clean
129
130# we use a canned sequence to avoid code redundancy
131define recurse
132@ for SUBDIR in ${SUBDIRS}; \
133do \
134  echo ${MAKE} $@ in $${SUBDIR}; \
135  ( cd $${SUBDIR} && ${MAKE} $@; ) \
136done
137endef
138
139local-clean:
140        rm -rf *~ a.out core *.o *.log
141
142local-distclean: local-clean
143        rm -rf Makefile config.cache config.log config.status TAGS* *.gz *.tar
144
145local-maintainer-clean: local-distclean
146        @ echo "This command is intended for maintainer use, only"
147        rm -rf configure
148
149clean mostlyclean: local-clean
150        $(recurse)
151
152distclean: local-distclean
153        $(recurse)
154        rm -rf build
155
156maintainer-clean: uninstall local-maintainer-clean
157        $(recurse)
158
159##############################################################
160# some extra targets for the specific packages
161.PHONY: factory libfac MP gmp smallgmp
162Singular factory libfac MP gmp smallgmp:
163        cd $@; ${MAKE} all
164
165##############################################################
166# documentation
167.PHONY: info dvi ps doc doc/singular.hlp html
168
169info dvi ps doc/singular.hlp html: ${SINGULAR}
170        cd doc; ${MAKE} $@
171
172doc info/singular.hlp:
173        cd doc; ${MAKE} install
174
175##############################################################
176# Tst targets
177.PHONY: Tst-All Tst Tst-Old Tst-Short Tst-Long
178Tst-All: Tst-Old Tst-Short Tst-Long
179
180Tst: Tst-Old Tst-Short
181
182Tst-Old: ${SINGULAR} Tst/Old/universal.lst Tst/regress.cmd
183        ${PERL} Tst/regress.cmd -r -s ${SINGULAR} Tst/Old/universal.lst
184
185Tst-Short: ${SINGULAR} Tst/Short/ok_s.lst Tst/regress.cmd
186        ${PERL} Tst/regress.cmd -r -s ${SINGULAR} Tst/Short/ok_s.lst
187
188Tst-Long:  ${SINGULAR} Tst/Long/ok_l.lst Tst/regress.cmd
189        ${PERL} Tst/regress.cmd -r -s ${SINGULAR} Tst/Long/ok_l.lst
190
191##############################################################
192test:
193        @echo "make Tst for the official Singular test suite"
194        @echo "this part here are unittest and still under development"
195        (cd Singular; ${MAKE} libsingular.a)
196        mkdir -p build
197        (cd build && cmake .. && make && make test)
198
199##############################################################
200# distribution targets
201#
202S_VERSION             = $${SINGULAR_VERSION-@SINGULAR_VERSION@}
203SINGUNAME             = @SINGUNAME@
204localdir              = /usr/local
205install_prefix        = ${localdir}/Singular/${S_VERSION}
206
207##############################################################
208# cygwin related stuff
209#
210CYGWIN_SING_VER       = @SINGULAR_RPM_VERSION@
211CYGWIN_PORT_VER       = ${CYGWIN_SING_VER}-1
212CYGWIN_SETUP_VER      = 2.457.2.2
213CYGWIN_REP_DIR        = cygwin_pkg
214CYGWIN_AUX_FILES      = rpm/cygwin
215CYGWIN_PFW_DIR        = /cygdrive/c/Programme/PackageForTheWeb\ 4/
216CYGWIN_PFW_EXEC       = ./pftwwiz.exe
217CYGWIN_ORIG           = external-cygwin
218CYGWIN_SINGULAR_DIR   = Singular
219CYGWIN_SINGULAR_ROOT  = /usr/share/${CYGWIN_SINGULAR_DIR}
220CYGWIN_SINGULAR_BIN   = /usr/lib/${CYGWIN_SINGULAR_DIR}
221CYGWIN_SINGULAR_DOC   = /usr/share/doc/${CYGWIN_SINGULAR_DIR}-${CYGWIN_SING_VER}
222
223
224BINDIST_DIRS        = kernel Singular doc IntegerProgramming dyn_modules
225
226SHAREDIST_DIRS      = Singular doc emacs
227
228SI_TMPDIR           = ${TMP_DIR}/singdist
229
230LN_S            = @LN_S@
231MKINSTALLDIRS   = ./mkinstalldirs
232
233BINDIST_NAME            = Singular-${S_VERSION}-${SINGUNAME}
234SHAREDIST_NAME          = Singular-${S_VERSION}-share
235
236
237install-dist install-local: install-bindist install-sharedist
238
239install-bindist:
240        for DIR in ${BINDIST_DIRS}; \
241        do \
242          if test -d $${DIR}; then \
243            (cd $${DIR}; ${MAKE} install-bindist install_prefix=${install_prefix});\
244          fi \
245        done
246
247install-sharedist: ${SINGULAR}
248        for DIR in ${SHAREDIST_DIRS}; \
249        do \
250          (cd $${DIR}; ${MAKE} install-sharedist install_prefix=${install_prefix}); \
251        done
252
253dist: ${SHAREDIST_NAME}.tar.gz  ${BINDIST_NAME}.tar.gz
254
255sharedist ${SHAREDIST_NAME}.tar.gz:
256        if test -d ${SI_TMPDIR}; then rm -rf ${SI_TMPDIR}; fi
257        ${MAKE} install-sharedist localdir=${SI_TMPDIR}
258        chmod -R a+rX ${SI_TMPDIR}
259        cd ${SI_TMPDIR}; tar cf - Singular| ${MYGZIP} > ${SHAREDIST_NAME}.tar.gz
260        mv ${SI_TMPDIR}/${SHAREDIST_NAME}.tar.gz .
261        rm -rf ${SI_TMPDIR}
262
263bindist ${BINDIST_NAME}.tar.gz:
264        if test -d ${SI_TMPDIR}; then rm -fr ${SI_TMPDIR}; fi
265        ${MAKE} install-bindist localdir=${SI_TMPDIR}
266        chmod -R a+rX ${SI_TMPDIR}
267        cd ${SI_TMPDIR}; tar cf - Singular| ${MYGZIP} > ${BINDIST_NAME}.tar.gz
268        mv ${SI_TMPDIR}/${BINDIST_NAME}.tar.gz .
269        rm -rf ${SI_TMPDIR}
270
271static-bindist ${BINDIST_NAME}-static.tar.gz:
272        if test -d ${SI_TMPDIR}; then rm -fr ${SI_TMPDIR}; fi
273        ${MAKE} install-bindist localdir=${SI_TMPDIR} LD_STATIC=1
274        chmod -R a+rX ${SI_TMPDIR}
275        -rm -f ${SI_TMPDIR}/Singular/*/*/*.so
276        -rm -f ${SI_TMPDIR}/Singular/*/*/modgen*
277        cd ${SI_TMPDIR}; tar cf - Singular| ${MYGZIP} > ${BINDIST_NAME}-static.tar.gz
278        mv ${SI_TMPDIR}/${BINDIST_NAME}-static.tar.gz .
279        rm -rf ${SI_TMPDIR}
280
281install-root:
282        ${MKINSTALLDIRS} ${localdir}/bin
283        ${LN_S} ${localdir}/Singular/${S_VERSION}/${SINGUNAME}/Singular ${localdir}/bin/Singular-${S_VERSION}
284        ${LN_S} ${localdir}/Singular/${S_VERSION}/${SINGUNAME}/ESingular ${localdir}/bin/ESingular-${S_VERSION}
285
286##############################################################
287# targets for the windows distribution
288#
289
290cygwin-dist-src singular-base-${CYGWIN_PORT_VER}-src.tar.bz2:
291        -rm -rf ${SI_TMPDIR}
292        ${MKINSTALLDIRS} ${SI_TMPDIR}/singular-${CYGWIN_PORT_VER}
293        export SVN_RSH=ssh; export SVNROOT=:ext:monty.mathematik.uni-kl.de:/usr/local/Singular/svn/trunk; \
294        cd ${SI_TMPDIR}/singular-${CYGWIN_PORT_VER}; svn co svn+ssh://monty.mathematik.uni-kl.de/usr/local/Singular/svn/trunk;
295        cd  ${SI_TMPDIR}; \
296        tar cjf singular-base-${CYGWIN_PORT_VER}-src.tar.bz2 singular-${CYGWIN_PORT_VER};
297        mv ${SI_TMPDIR}/singular-base-${CYGWIN_PORT_VER}-src.tar.bz2 .
298        -rm -rf ${SI_TMPDIR}
299
300cygwin-dist-scripts:
301        @echo -e  "Writing /etc/postinstall/singular-help.sh"
302        @echo -e  '#!/bin/sh' > /etc/postinstall/singular-help.sh
303        @echo -e  '' >> /etc/postinstall/singular-icons.sh
304        @echo -e  'install-info' >> /etc/postinstall/singular-icons.sh
305        @echo -e  'mkdir "`cygpath -u -A -P`/Singular CAS"' >> /etc/postinstall/singular-icons.sh
306        @echo -e  "Writing /etc/postinstall/singular-icons.sh"
307        @echo -e  '#!/bin/sh' > /etc/postinstall/singular-icons.sh
308        @echo -e  '' >> /etc/postinstall/singular-icons.sh
309        @echo -e  'mkdir "`cygpath -u -A -P`/Singular CAS"' >> /etc/postinstall/singular-icons.sh
310        @echo -e  'mkdir "`cygpath -u -A -P`/Singular CAS/Cygwin"' >> /etc/postinstall/singular-icons.sh
311        @echo -e  '' >> /etc/postinstall/singular-icons.sh
312        @echo -e  '##################### Singular CAS\Cygwin' >> /etc/postinstall/singular-icons.sh
313        @echo -e  '# Bash Shell' >> /etc/postinstall/singular-icons.sh
314        @echo -e  'mkshortcut -A -a \047\047 \' >> /etc/postinstall/singular-icons.sh
315        @echo -e  '       -P /cygwin.bat -n "Singular CAS\\Cygwin\\Bash shell" \' >> /etc/postinstall/singular-icons.sh
316        @echo -e  '       -i /bin/rxvt.exe \' >> /etc/postinstall/singular-icons.sh
317        @echo -e  '       -d "This starts a bash shell."' >> /etc/postinstall/singular-icons.sh
318        @echo -e  '' >> /etc/postinstall/singular-icons.sh
319        @echo -e  '# Rxvt Terminal' >> /etc/postinstall/singular-icons.sh
320        @echo -e  'mkshortcut -A -a \047-rv -fn "FixedSys" -e /bin/bash --login -i\047 \' >> /etc/postinstall/singular-icons.sh
321        @echo -e  '       -i /bin/rxvt.exe -n "Singular CAS\\Cygwin\\Rxvt - Terminal" \' >> /etc/postinstall/singular-icons.sh
322        @echo -e  '       -P /bin/rxvt -d "This starts an rxvt terminal."' >> /etc/postinstall/singular-icons.sh
323        @echo -e  '' >> /etc/postinstall/singular-icons.sh
324        @echo -e  '##################### Singular CAS' >> /etc/postinstall/singular-icons.sh
325        @echo -e  '# Singular in rxvt' >> /etc/postinstall/singular-icons.sh
326        @echo -e  'mkshortcut -A -a \047-rv -fn "FixedSys" -e /bin/bash --login -i -c Singular\047 \' >> /etc/postinstall/singular-icons.sh
327        @echo -e  '       -i ${CYGWIN_SINGULAR_BIN}/runTSingular.exe -n "Singular CAS\\Singular (rxvt)" \' >> /etc/postinstall/singular-icons.sh
328        @echo -e  '       -P /bin/rxvt -d "This starts Singular in an rxvt terminal."' >> /etc/postinstall/singular-icons.sh
329        @echo -e  '' >> /etc/postinstall/singular-icons.sh
330        @echo -e  '# Singular in DOS mode' >> /etc/postinstall/singular-icons.sh
331        @echo -e  'mkshortcut -A -a Singular \' >> /etc/postinstall/singular-icons.sh
332        @echo -e  '       -i ${CYGWIN_SINGULAR_BIN}/Singular.exe -n "Singular CAS\\Singular (Terminal)" \' >> /etc/postinstall/singular-icons.sh
333        @echo -e  '       -P /bin/bash -d "This starts Singular in a Microsoft terminal."' >> /etc/postinstall/singular-icons.sh
334        @echo -e  '' >> /etc/postinstall/singular-icons.sh
335        @echo -e  '# Emacs + Singular' >> /etc/postinstall/singular-icons.sh
336        @echo -e  'if test -f /bin/XWin.exe; then' >> /etc/postinstall/singular-icons.sh
337        @echo -e  'mkshortcut -A -a \047bash -c -l "((xwin -multiwindow -clipboard -silent-dup-error &) && sleep 5 && (ESingular --emacs=xemacs)) &"\047 \' >> /etc/postinstall/singular-icons.sh
338        @echo -e  '       -i ${CYGWIN_SINGULAR_BIN}/runESingular.exe -n "Singular CAS\\Singular (Emacs and X-Server)" \' >> /etc/postinstall/singular-icons.sh
339        @echo -e  '       -w /bin \' >> /etc/postinstall/singular-icons.sh
340        @echo -e  '       -P /bin/run.exe -d "This starts Singular in Emacs after starting the X-Server."' >> /etc/postinstall/singular-icons.sh
341        @echo -e  'fi' >> /etc/postinstall/singular-icons.sh
342        @echo -e  '' >> /etc/postinstall/singular-icons.sh
343        @echo -e  '##################### Desktop' >> /etc/postinstall/singular-icons.sh
344        @echo -e  '# Singular in rxvt' >> /etc/postinstall/singular-icons.sh
345        @echo -e  'mkshortcut -A -a \047-rv -fn "FixedSys" -e /bin/bash --login -i -c Singular\047 \' >> /etc/postinstall/singular-icons.sh
346        @echo -e  '       -i ${CYGWIN_SINGULAR_BIN}/runTSingular.exe -n "Singular (rxvt)" \' >> /etc/postinstall/singular-icons.sh
347        @echo -e  '       -D /bin/rxvt -d "This starts Singular in an rxvt terminal."' >> /etc/postinstall/singular-icons.sh
348        @echo -e  '' >> /etc/postinstall/singular-icons.sh
349        @echo -e  '# Singular in DOS mode' >> /etc/postinstall/singular-icons.sh
350        @echo -e  'mkshortcut -A -a Singular \' >> /etc/postinstall/singular-icons.sh
351        @echo -e  '       -i ${CYGWIN_SINGULAR_BIN}/Singular.exe -n "Singular (Terminal)" \' >> /etc/postinstall/singular-icons.sh
352        @echo -e  '       -D /bin/bash -d "This starts Singular in a Microsoft terminal."' >> /etc/postinstall/singular-icons.sh
353        @echo -e  '' >> /etc/postinstall/singular-icons.sh
354        @echo -e  '# Emacs + Singular' >> /etc/postinstall/singular-icons.sh
355        @echo -e  'if test -f /bin/XWin.exe; then' >> /etc/postinstall/singular-icons.sh
356        @echo -e  'mkshortcut -A -a \047bash -c -l "((xwin -multiwindow -clipboard -silent-dup-error &) && sleep 5 && (ESingular --emacs=xemacs)) &"\047 \' >> /etc/postinstall/singular-icons.sh
357        @echo -e  '       -i ${CYGWIN_SINGULAR_BIN}/runESingular.exe -n "Singular (Emacs and X-Server)" \' >> /etc/postinstall/singular-icons.sh
358        @echo -e  '       -w /bin \' >> /etc/postinstall/singular-icons.sh
359        @echo -e  '       -D /bin/run.exe -d "This starts Singular in Emacs after starting the X-Server."' >> /etc/postinstall/singular-icons.sh
360        @echo -e  'fi' >> /etc/postinstall/singular-icons.sh
361        @echo -e  '' >> /etc/postinstall/singular-icons.sh
362        @echo -e  Writing /usr/bin/ESingular
363        @echo -e  "#! /bin/bash" > /usr/bin/ESingular
364        @echo -e  "export SINGULAR_BIN_DIR=${CYGWIN_SINGULAR_BIN}" >> /usr/bin/ESingular
365        @echo -e  "export SINGULAR_ROOT_DIR=${CYGWIN_SINGULAR_ROOT}" >> /usr/bin/ESingular
366        @echo -e  "export SINGULAR_INFO_FILE=/usr/share/info/singular.info" >> /usr/bin/ESingular
367        @echo -e  "export SINGULAR_IDX_FILE=${CYGWIN_SINGULAR_DOC}/doc/singular.idx" >> /usr/bin/ESingular
368        @echo -e  "export SINGULAR_HTML_DIR=${CYGWIN_SINGULAR_DOC}/html" >> /usr/bin/ESingular
369        @echo -e  "export SINGULAR_CHM_FILE=${CYGWIN_SINGULAR_DOC}/doc/Manual.chm" >> /usr/bin/ESingular
370        @echo -e  "export SINGULAR_EXAMPLES_DIR=${CYGWIN_SINGULAR_DOC}/examples" >> /usr/bin/ESingular
371        @echo -e  'export PATH="${CYGWIN_SINGULAR_BIN}:/bin:$$PATH"' >> /usr/bin/ESingular
372        @echo -e  'if [ -z $$DISPLAY ]; then export DISPLAY=:0.0; fi' >> /usr/bin/ESingular
373        @echo -e  "exec ${CYGWIN_SINGULAR_BIN}/ESingular.exe \$$*" >> /usr/bin/ESingular
374        @echo -e  Writing /usr/bin/Singular
375        @echo -e  "#! /bin/bash" > /usr/bin/Singular
376        @echo -e  "export SINGULAR_BIN_DIR=${CYGWIN_SINGULAR_BIN}" >> /usr/bin/Singular
377        @echo -e  "export SINGULAR_ROOT_DIR=${CYGWIN_SINGULAR_ROOT}" >> /usr/bin/Singular
378        @echo -e  "export SINGULAR_INFO_FILE=/usr/share/info/singular.info" >> /usr/bin/Singular
379        @echo -e  "export SINGULAR_IDX_FILE=${CYGWIN_SINGULAR_DOC}/doc/singular.idx" >> /usr/bin/Singular
380        @echo -e  "export SINGULAR_HTML_DIR=${CYGWIN_SINGULAR_DOC}/html" >> /usr/bin/Singular
381        @echo -e  "export SINGULAR_CHM_FILE=${CYGWIN_SINGULAR_DOC}/doc/Manual.chm" >> /usr/bin/Singular
382        @echo -e  "export SINGULAR_EXAMPLES_DIR=${CYGWIN_SINGULAR_DOC}/examples" >> /usr/bin/Singular
383        @echo -e  'export PATH="${CYGWIN_SINGULAR_BIN}:$$PATH"' >> /usr/bin/Singular
384        @echo -e  "exec ${CYGWIN_SINGULAR_BIN}/Singular.exe \$$*" >> /usr/bin/Singular
385        @echo -e  Writing /usr/bin/surfex
386        @echo -e  "#! /bin/bash" > /usr/bin/surfex
387        @echo -e  "surfex_dir='/lib/surfex'" >> /usr/bin/surfex
388        @echo -e  "shift" >> /usr/bin/surfex
389        @echo -e  "tmp_dir=/tmp" >> /usr/bin/surfex
390        @echo -e  "std_eqn='x^3+y^3+z^3+1-0.25*(x+y+z+1)^3'" >> /usr/bin/surfex
391        @echo -e  "allargs=''" >> /usr/bin/surfex
392        @echo -e  'if [ -z $$1 ] ; then' >> /usr/bin/surfex
393        @echo -e  '    allargs="-e $$std_eqn"' >> /usr/bin/surfex
394        @echo -e  'else' >> /usr/bin/surfex
395        @echo -e  '    allargs=$$*' >> /usr/bin/surfex
396        @echo -e  'fi' >> /usr/bin/surfex
397        @echo -e  'echo "$$PWD" | sed -e "s/ /\ /g" > $$tmp_dir/tmp.$$$$.txt' >> /usr/bin/surfex
398        @echo -e  'read surfexstartdir <$$tmp_dir/tmp.$$$$.txt' >> /usr/bin/surfex
399        @echo -e  '/bin/rm -f $$tmp_dir/tmp.$$$$.txt' >> /usr/bin/surfex
400        @echo -e  'cd "$$surfex_dir"' >> /usr/bin/surfex
401        @echo -e  'java -jar surfex.jar -d "$$surfexstartdir" -t "$$tmp_dir" $$allargs' >> /usr/bin/surfex
402
403cygwin-dist-install: cygwin-dist-scripts ## ${BINDIST_NAME}.tar.gz
404        if test -d ${SI_TMPDIR}; then rm -fr ${SI_TMPDIR}; fi
405        ${MKINSTALLDIRS} ${SI_TMPDIR}
406        tar  --directory=${SI_TMPDIR} -x -z -f ${SHAREDIST_NAME}.tar.gz
407        -rm -rf ${SI_TMPDIR}/Singular/${S_VERSION}/html
408        tar  --directory=${SI_TMPDIR} -x -z -f ${BINDIST_NAME}.tar.gz
409        -rm -rf ${CYGWIN_SINGULAR_ROOT} ${CYGWIN_SINGULAR_DOC} ${CYGWIN_SINGULAR_BIN}
410        ${MKINSTALLDIRS} ${CYGWIN_SINGULAR_ROOT} ${CYGWIN_SINGULAR_DOC} ${CYGWIN_SINGULAR_BIN}
411## Copy documentation files
412        cp ${SI_TMPDIR}/Singular/${S_VERSION}/README /usr/share/doc/Singular-${CYGWIN_SING_VER}/
413        cp ${SI_TMPDIR}/Singular/${S_VERSION}/INSTALL /usr/share/doc/Singular-${CYGWIN_SING_VER}/
414        cp ${SI_TMPDIR}/Singular/${S_VERSION}/COPYING /usr/share/doc/Singular-${CYGWIN_SING_VER}/
415        cp ${SI_TMPDIR}/Singular/${S_VERSION}/NEWS /usr/share/doc/Singular-${CYGWIN_SING_VER}/
416        cp ${SI_TMPDIR}/Singular/${S_VERSION}/GPL* /usr/share/doc/Singular-${CYGWIN_SING_VER}/
417## Install Cygwin specific structure
418        -rm -rf /lib/surfex
419        mv ${SI_TMPDIR}/Singular/${S_VERSION}/LIB/surfex /lib/surfex
420        -mv -u ${SI_TMPDIR}/Singular/${S_VERSION}/LIB/surfex.jar /lib/surfex/surfex.jar
421        mv ${SI_TMPDIR}/Singular/${S_VERSION}/ix86-Win/* ${CYGWIN_SINGULAR_BIN}/
422        -rmdir ${SI_TMPDIR}/Singular/${S_VERSION}/ix86-Win
423        mv ${SI_TMPDIR}/Singular/${S_VERSION}/LIB ${CYGWIN_SINGULAR_ROOT}/
424        mv ${SI_TMPDIR}/Singular/${S_VERSION}/emacs ${CYGWIN_SINGULAR_ROOT}/
425        mv ${SI_TMPDIR}/Singular/${S_VERSION}/* ${CYGWIN_SINGULAR_DOC}/
426        mv ${CYGWIN_SINGULAR_DOC}/info/singular.hlp /usr/share/info/singular.info
427        -rm -f ${CYGWIN_SINGULAR_BIN}/surfex
428## Copy auxiliary files
429        cp ${CYGWIN_AUX_FILES}/surf.exe /usr/bin/
430        cp ${CYGWIN_AUX_FILES}/SURF_AUTHORS ${CYGWIN_SINGULAR_BIN}/
431        cp ${CYGWIN_AUX_FILES}/SURF_README ${CYGWIN_SINGULAR_BIN}/
432        cp ${CYGWIN_AUX_FILES}/SURF_COPYING ${CYGWIN_SINGULAR_BIN}/
433        cp ${CYGWIN_AUX_FILES}/Manual.chm ${CYGWIN_SINGULAR_DOC}/doc
434        export http_proxy=http://positron.mathematik.uni-kl.de:3128; \
435        cp ${CYGWIN_AUX_FILES}/singular-base.README /usr/share/doc/Cygwin/singular-base-${CYGWIN_SING_VER}.README
436        cp ${CYGWIN_AUX_FILES}/singular-share.README /usr/share/doc/Cygwin/singular-share-${CYGWIN_SING_VER}.README
437        cp ${CYGWIN_AUX_FILES}/singular-help.README /usr/share/doc/Cygwin/singular-help-${CYGWIN_SING_VER}.README
438        cp ${CYGWIN_AUX_FILES}/singular-surf.README /usr/share/doc/Cygwin/singular-surf-${CYGWIN_SING_VER}.README
439        cp ${CYGWIN_AUX_FILES}/singular-icons.README /usr/share/doc/Cygwin/singular-icons-${CYGWIN_SING_VER}.README
440
441cygwin-dist-pack: ## singular-base-${CYGWIN_PORT_VER}-src.tar.bz2
442        -rm -r -f ${CYGWIN_REP_DIR}
443        mkdir ${CYGWIN_REP_DIR}
444        mkdir ${CYGWIN_REP_DIR}/release
445        mkdir ${CYGWIN_REP_DIR}/release/Singular
446        tar cjf ${CYGWIN_REP_DIR}/release/Singular/singular-base-${CYGWIN_PORT_VER}.tar.bz2 \
447              /usr/share/doc/Cygwin/singular-base-${CYGWIN_SING_VER}.README \
448              /usr/share/doc/Singular-${CYGWIN_SING_VER}/COPYING  \
449              /usr/share/doc/Singular-${CYGWIN_SING_VER}/INSTALL  \
450              /usr/share/doc/Singular-${CYGWIN_SING_VER}/NEWS     \
451              /usr/share/doc/Singular-${CYGWIN_SING_VER}/README   \
452              /usr/share/doc/Singular-${CYGWIN_SING_VER}/GPL*  \
453              /usr/bin/Singular                  \
454              /usr/bin/ESingular                 \
455              ${CYGWIN_SINGULAR_BIN}/*Singular*       \
456              ${CYGWIN_SINGULAR_BIN}/solve_IP.exe     \
457              ${CYGWIN_SINGULAR_BIN}/toric_ideal.exe  \
458              ${CYGWIN_SINGULAR_BIN}/change_cost.exe  \
459              ${CYGWIN_SINGULAR_BIN}/LLL.exe          \
460              ${CYGWIN_SINGULAR_BIN}/libparse.exe     \
461              ${CYGWIN_SINGULAR_BIN}/gen_test.exe
462        tar cjf ${CYGWIN_REP_DIR}/release/Singular/singular-surf-${CYGWIN_PORT_VER}.tar.bz2 \
463              /usr/share/doc/Cygwin/singular-surf-${CYGWIN_SING_VER}.README \
464              /usr/bin/surf.exe                     \
465              /usr/bin/surfex                       \
466              ${CYGWIN_SINGULAR_BIN}/SURF_AUTHORS   \
467              ${CYGWIN_SINGULAR_BIN}/SURF_README    \
468              ${CYGWIN_SINGULAR_BIN}/SURF_COPYING   \
469              /lib/surfex/*                         \
470              ${CYGWIN_SINGULAR_ROOT}/LIB/surf.lib  \
471              ${CYGWIN_SINGULAR_ROOT}/LIB/surfex.lib
472        tar -cj --exclude='surf*' -f \
473              ${CYGWIN_REP_DIR}/release/Singular/singular-share-${CYGWIN_PORT_VER}.tar.bz2 \
474              /usr/share/doc/Cygwin/singular-share-${CYGWIN_SING_VER}.README \
475              ${CYGWIN_SINGULAR_ROOT}/*
476        tar cjf ${CYGWIN_REP_DIR}/release/Singular/singular-help-${CYGWIN_PORT_VER}.tar.bz2 \
477              /usr/share/doc/Cygwin/singular-help-${CYGWIN_SING_VER}.README \
478              /usr/share/info/singular.info                                 \
479              ${CYGWIN_SINGULAR_DOC}/*
480        tar cjf ${CYGWIN_REP_DIR}/release/Singular/singular-icons-${CYGWIN_PORT_VER}.tar.bz2  \
481              /usr/share/doc/Cygwin/singular-icons-${CYGWIN_SING_VER}.README \
482              /etc/postinstall/singular-icons.sh
483        cp singular-base-${CYGWIN_PORT_VER}-src.tar.bz2 ${CYGWIN_REP_DIR}/release/Singular/
484        touch ${CYGWIN_AUX_FILES}/singular-surf-${CYGWIN_PORT_VER}-src.tar.bz2
485        cp ${CYGWIN_AUX_FILES}/singular-surf-${CYGWIN_PORT_VER}-src.tar.bz2 ${CYGWIN_REP_DIR}/release/Singular/
486        touch ${CYGWIN_AUX_FILES}/singular-helper-${CYGWIN_PORT_VER}.tar.bz2
487        cp ${CYGWIN_AUX_FILES}/singular-helper-${CYGWIN_PORT_VER}.tar.bz2 ${CYGWIN_REP_DIR}/release/Singular/
488
489cygwin-helper: cygwin-setup-init cygwin-setup-helper
490        ${MKINSTALLDIRS} ${CYGWIN_REP_DIR}/release/Singular
491        touch ${CYGWIN_REP_DIR}/release/Singular/singular-helper-${CYGWIN_PORT_VER}.tar.bz2
492
493cygwin-dist: cygwin-dist-install cygwin-dist-pack
494
495cygwin-setup-init:
496        mkinstalldirs ${CYGWIN_REP_DIR}
497        @echo "Writing ${CYGWIN_REP_DIR}/setup.ini"
498        @echo "# This file is automatically generated by Makefile." > ${CYGWIN_REP_DIR}/setup.ini
499        @echo "# Special for Singular Distribution." >> ${CYGWIN_REP_DIR}/setup.ini
500        @echo -n "setup-timestamp: " >> ${CYGWIN_REP_DIR}/setup.ini
501        @echo `perl -e 'print time'` >> ${CYGWIN_REP_DIR}/setup.ini
502        @echo "setup-version: ${CYGWIN_SETUP_VER}" >> ${CYGWIN_REP_DIR}/setup.ini
503        @echo >> ${CYGWIN_REP_DIR}/setup.ini
504        if test -f ${CYGWIN_ORIG}/Small/setup.ini; then                             \
505                tail -n +7 ${CYGWIN_ORIG}/Small/setup.ini >> ${CYGWIN_REP_DIR}/setup.ini;  \
506        else                                                                        \
507                tail -n +7 ${CYGWIN_ORIG}/Full/setup.ini >> ${CYGWIN_REP_DIR}/setup.ini;   \
508        fi;
509        @echo >> ${CYGWIN_REP_DIR}/setup.ini
510        export http_proxy=http://positron.mathematik.uni-kl.de:3128; \
511
512cygwin-setup-beta: cygwin-setup-init cygwin-setup-helper cygwin-setup-base cygwin-setup-share cygwin-setup-icons cygwin-setup-help cygwin-setup-surf
513        cp ${CYGWIN_REP_DIR}/setup.ini ${CYGWIN_REP_DIR}/setup
514        cd ${CYGWIN_REP_DIR} && bzip2 -f setup
515        cd ${CYGWIN_REP_DIR} && md5sum setup.* | sed -e 's/*//g' > md5.sum
516        cp -r ${CYGWIN_REP_DIR}/release/* ${CYGWIN_ORIG}/Full/release
517        rm -rf ${CYGWIN_ORIG}/Full/release/Singular/singular-base-*-src.tar.bz2
518        rm -rf ${CYGWIN_ORIG}/Full/release/Singular/singular-surf-*-src.tar.bz2
519        cp -r ${CYGWIN_REP_DIR}/release/* ${CYGWIN_ORIG}/Small/release
520        rm -rf ${CYGWIN_ORIG}/Small/release/Singular/singular-base-*-src.tar.bz2
521        rm -rf ${CYGWIN_ORIG}/Small/release/Singular/singular-surf-*-src.tar.bz2
522
523cygwin-setup: cygwin-setup-init cygwin-setup-helper
524        cp ${CYGWIN_REP_DIR}/setup.ini ${CYGWIN_REP_DIR}/setup
525        cd ${CYGWIN_REP_DIR} && bzip2 -f setup
526        cd ${CYGWIN_REP_DIR} && md5sum setup.* | sed -e 's/*//g' > md5.sum
527
528cygwin-setup-%:
529        @echo "Writing ${CYGWIN_REP_DIR}/setup.ini ($*)"
530        @echo "@ singular-$*" >> ${CYGWIN_REP_DIR}/setup.ini
531        cat ${CYGWIN_AUX_FILES}/setup-$*.hint >> ${CYGWIN_REP_DIR}/setup.ini
532        @echo "version: ${CYGWIN_PORT_VER}" >> ${CYGWIN_REP_DIR}/setup.ini
533        @echo -n "install: release/Singular/singular-$*-${CYGWIN_PORT_VER}.tar.bz2 "  >> ${CYGWIN_REP_DIR}/setup.ini
534        @echo -n `du -b ${CYGWIN_REP_DIR}/release/Singular/singular-$*-${CYGWIN_PORT_VER}.tar.bz2 | sed -e 's/\([0-9]*\).*/\1/g'` >> ${CYGWIN_REP_DIR}/setup.ini
535        @echo -n " " >> ${CYGWIN_REP_DIR}/setup.ini
536        @echo `md5sum ${CYGWIN_REP_DIR}/release/Singular/singular-$*-${CYGWIN_PORT_VER}.tar.bz2 | sed -e 's/\([a-zA-Z0-9]*\).*/\1/g'` >> ${CYGWIN_REP_DIR}/setup.ini
537        @if test -e ${CYGWIN_REP_DIR}/release/Singular/singular-$*-${CYGWIN_PORT_VER}-src.tar.bz2; then \
538          echo -n "source: release/Singular/singular-$*-${CYGWIN_PORT_VER}-src.tar.bz2 "  >> ${CYGWIN_REP_DIR}/setup.ini; \
539          echo -n `du -b ${CYGWIN_REP_DIR}/release/Singular/singular-$*-${CYGWIN_PORT_VER}-src.tar.bz2 | sed -e 's/\([0-9]*\).*/\1/g'` >> ${CYGWIN_REP_DIR}/setup.ini; \
540          echo -n " " >> ${CYGWIN_REP_DIR}/setup.ini; \
541          echo `md5sum ${CYGWIN_REP_DIR}/release/Singular/singular-$*-${CYGWIN_PORT_VER}-src.tar.bz2 | sed -e 's/\([a-zA-Z0-9]*\).*/\1/g'` >> ${CYGWIN_REP_DIR}/setup.ini; \
542        fi;
543        @echo >> ${CYGWIN_REP_DIR}/setup.ini
544
545cygwin-pfw: cygwin-pfw-Small cygwin-pfw-Full
546
547cygwin-pfw-%:
548        if test -d ${SI_TMPDIR}; then rm -rf ${SI_TMPDIR}; fi
549        ${MKINSTALLDIRS} ${SI_TMPDIR}/Files
550        cp -r ${CYGWIN_ORIG}/$*/* ${SI_TMPDIR}/Files/
551#       touch ${SI_TMPDIR}/Files/release/Singular/singular-helper-${CYGWIN_PORT_VER}.tar.bz2
552        @echo "Creating $* distribution ..."
553        -rm -f  ${SI_TMPDIR}/Files/setup.exe
554        cp ${CYGWIN_AUX_FILES}/setup-pfw.exe ${SI_TMPDIR}/Files/setup.exe
555# wrong:        cat ${CYGWIN_REP_DIR}/setup.ini | sed -e 's/setup-version:.*//' | sed -e 's/setup-timestamp:.*//' >> ${SI_TMPDIR}/Files/setup.ini
556# new:
557        cp ${CYGWIN_REP_DIR}/setup.ini ${SI_TMPDIR}/Files/setup.ini
558        @echo Writing Singular.pfw ...
559        @echo "Version=2.0" >> ${SI_TMPDIR}/Singular.pfw
560        @echo "" >> ${SI_TMPDIR}/Singular.pfw
561        @echo "[Options]" >> ${SI_TMPDIR}/Singular.pfw
562        @echo "Title=Singular ${S_VERSION}: $* Distribution" >> ${SI_TMPDIR}/Singular.pfw
563        @echo "Company=Department of Mathematics and Center for Computer Algebra, University of Kaiserslautern" >> ${SI_TMPDIR}/Singular.pfw
564        @echo "CompanyEMail=singular@mathematik.uni-kl.de" >> ${SI_TMPDIR}/Singular.pfw
565        @echo -n "BasePath="  >> ${SI_TMPDIR}/Singular.pfw
566        @echo `cygpath -a -w ${SI_TMPDIR}/Files` >> ${SI_TMPDIR}/Singular.pfw
567        @echo "ImportPath=" >> ${SI_TMPDIR}/Singular.pfw
568        @echo "UseRTF=1" >> ${SI_TMPDIR}/Singular.pfw
569        @echo "SaveFiles=0" >> ${SI_TMPDIR}/Singular.pfw
570        @echo "SubFolders=1" >> ${SI_TMPDIR}/Singular.pfw
571        @echo "ApplicationName=Singular ${S_VERSION} Build `date -u +%D' UTC '%T`" >> ${SI_TMPDIR}/Singular.pfw
572        @echo "Description=A Computer Algebra System For Polynomial Computations" >> ${SI_TMPDIR}/Singular.pfw
573        @echo "Comments=Authors: G.-M. Greuel, G. Pfister, H. Schoenemann" >> ${SI_TMPDIR}/Singular.pfw
574        @echo "Notice=Distributed under General Public License (GPL)" >> ${SI_TMPDIR}/Singular.pfw
575        @echo "Version=3-1-0" >> ${SI_TMPDIR}/Singular.pfw
576        @echo -n "OutputSpec=" >> ${SI_TMPDIR}/Singular.pfw
577        @echo -n "`cygpath -a -w .`" >> ${SI_TMPDIR}/Singular.pfw
578        @echo "\Singular-${S_VERSION}-$*.exe" >> ${SI_TMPDIR}/Singular.pfw
579        @echo "GUIDs=0" >> ${SI_TMPDIR}/Singular.pfw
580        @echo "Type=2" >> ${SI_TMPDIR}/Singular.pfw
581        @echo "Compress=1" >> ${SI_TMPDIR}/Singular.pfw
582        @echo "Sign=0" >> ${SI_TMPDIR}/Singular.pfw
583        @echo "Transfer=0" >> ${SI_TMPDIR}/Singular.pfw
584        @echo "" >> ${SI_TMPDIR}/Singular.pfw
585        @echo "[Runtime]" >> ${SI_TMPDIR}/Singular.pfw
586        @echo "Welcome=" >> ${SI_TMPDIR}/Singular.pfw
587        @echo -n "License=" >> ${SI_TMPDIR}/Singular.pfw
588        @echo -n "`cygpath -a -w .`" >> ${SI_TMPDIR}/Singular.pfw
589        @echo "\GPL" >> ${SI_TMPDIR}/Singular.pfw
590        @echo "Prompt=" >> ${SI_TMPDIR}/Singular.pfw
591        @echo "Password=" >> ${SI_TMPDIR}/Singular.pfw
592        @echo "DefaultPath=" >> ${SI_TMPDIR}/Singular.pfw
593        @echo "Language=English" >> ${SI_TMPDIR}/Singular.pfw
594        @echo "WindowStyle=0" >> ${SI_TMPDIR}/Singular.pfw
595        @echo "Options=33" >> ${SI_TMPDIR}/Singular.pfw
596        @echo "Execute=setup.exe" >> ${SI_TMPDIR}/Singular.pfw
597        @echo "CmdLine=-L -q -n" >> ${SI_TMPDIR}/Singular.pfw
598        @echo "AllowChangeTarget=0" >> ${SI_TMPDIR}/Singular.pfw
599        @echo "AllowDelete=0" >> ${SI_TMPDIR}/Singular.pfw
600        @echo "LaunchEXE=1" >> ${SI_TMPDIR}/Singular.pfw
601        @echo "" >> ${SI_TMPDIR}/Singular.pfw
602        @echo "[Extension]" >> ${SI_TMPDIR}/Singular.pfw
603        @echo "Server=" >> ${SI_TMPDIR}/Singular.pfw
604        @echo "Calls=0" >> ${SI_TMPDIR}/Singular.pfw
605        cd ${CYGWIN_PFW_DIR}; \
606        ${CYGWIN_PFW_EXEC} -a -s "`cygpath -a -w ${SI_TMPDIR}/Singular.pfw`"
607
608singular-cd-windows:
609        @echo Building cd directories and web interface
610        ${MKINSTALLDIRS} singular-cd/WINDOWS/Files/Repository
611        @echo WEBPAGE FEATURE NOT INTRODUCED
612        @echo Buidling cd autostart
613        @echo AUTOSTART FEATURE NOT INTRODUCED
614        @echo Copying PackageForTheWeb
615        cp Singular-${S_VERSION}-*.exe singular-cd/WINDOWS/Files/
616        cp Singular/singular.ico singular-cd/WINDOWS/Files/
617        @echo Building cygwin-cd-repository
618        cp -r ${CYGWIN_ORIG}/cd-repository/* singular-cd/WINDOWS/Files/Repository/
619        cp -r ${CYGWIN_REP_DIR}/release/Singular singular-cd/WINDOWS/Files/Repository/release/
620        cp ${CYGWIN_AUX_FILES}/setup-cd.exe singular-cd/WINDOWS/Files/Repository/
621        cat ${CYGWIN_REP_DIR}/setup.ini | sed -e 's/setup-version:.*//' | sed -e 's/setup-timestamp:.*//' >> singular-cd/WINDOWS/Files/Repository/setup.ini
622
623##
624## old targets -- need to be updated
625##
626
627BINDIR_NAME     = Singular/${S_VERSION}/${SINGUNAME}
628LIBDIR_NAME     = Singular/${S_VERSION}/LIB
629GFTABLESDIR_NAME= Singular/${S_VERSION}/LIB/gftables
630DOCDIR_NAME     = Singular/${S_VERSION}/doc
631HTMLDIR_NAME    = Singular/${S_VERSION}/html
632INFODIR_NAME    = Singular/${S_VERSION}/info
633EMACSDIR_NAME   = Singular/${S_VERSION}/emacs
634
635ZIP             = zip
636
637test_t:
638        echo ${S_VERSION}
639
640.PHONY: sharedist bindist static-bindist infodist win-sharedist
641_static-bindist: ${SINGULAR}
642        cd Singular; ${MAKE} Singular-$@ libparse
643        rm -rf ${SI_TMPDIR}
644        ${MKINSTALLDIRS} ${SI_TMPDIR}/${BINDIR_NAME}
645        cp Singular/Singular-$@ ${SI_TMPDIR}/${BINDIR_NAME}/Singular-static
646        cp Singular/libparse ${SI_TMPDIR}/${BINDIR_NAME}
647        -strip ${SI_TMPDIR}/${BINDIR_NAME}/*
648        cat INSTALL.unix | sed -e "s/<x-y-z>/${S_VERSION}/g" > \
649                      ${SI_TMPDIR}/Singular/INSTALL
650        cd ${SI_TMPDIR}; chmod -R a+rX *;\
651           tar cf - Singular | ${MYGZIP} > ${BINDIST_NAME}-static.tar.gz
652        mv ${SI_TMPDIR}/${BINDIST_NAME}-static.tar.gz .
653        rm -rf ${SI_TMPDIR}
654
655_infodist:
656        rm -rf ${SI_TMPDIR}
657        ${MKINSTALLDIRS} ${SI_TMPDIR}/${SINGUNAME}/bin/
658        cp `which info` ${SI_TMPDIR}/${SINGUNAME}/bin/
659        -strip ${SI_TMPDIR}/${SINGUNAME}/bin/info
660        cd ${SI_TMPDIR}; tar cf - ${SINGUNAME} | ${MYGZIP}  > info-${SINGUNAME}.tar.gz
661        mv ${SI_TMPDIR}/info-${SINGUNAME}.tar.gz .
662        rm -rf ${SI_TMPDIR}
663
664INSTALL         = ./Singular/install-sh -c
665SH_PROGRAM      = /bin/sh
666INFO_PROGRAM    = /bin/info
667CYGWIN_DLL      = /bin/cygwin1.dll
668
669windist: ${SINGULAR}
670        cd Singular; ${MAKE} install-bindist
671        rm -rf ${SI_TMPDIR}
672        ${MKINSTALLDIRS} ${SI_TMPDIR}/${BINDIR_NAME}
673        ${INSTALL} Singular/Singular-bindist \
674                   ${SI_TMPDIR}/${BINDIR_NAME}/Singular.exe
675        ${INSTALL} Singular/libparse ${SI_TMPDIR}/${BINDIR_NAME}
676        ${INSTALL} ${SH_PROGRAM} ${SI_TMPDIR}/${BINDIR_NAME}
677        ${INSTALL} ${INFO_PROGRAM} ${SI_TMPDIR}/${BINDIR_NAME}
678        ${INSTALL} ${CYGWIN_DLL} ${SI_TMPDIR}/${BINDIR_NAME}
679        cat INSTALL.win | sed -e "s/<x-y-z>/${S_VERSION}/g" > \
680                         ${SI_TMPDIR}/Singular/INSTALL
681        cd ${SI_TMPDIR}; chmod -R a+rX *;\
682           ${ZIP} -r sing Singular
683        mv ${SI_TMPDIR}/sing.zip Singular-${S_VERSION}-${SINGUNAME}.zip
684        rm -rf ${SI_TMPDIR}
685
686srcdist:
687        rm -rf ${SI_TMPDIR}
688        ${MKINSTALLDIRS} ${SI_TMPDIR}
689        svnversion >svnver
690        cd ${SI_TMPDIR}; svn export http://www.singular.uni-kl.de/svn/trunk Singular-${S_VERSION}
691        mv svnver ${SI_TMPDIR}/Singular-${S_VERSION}/Singular/svnver
692        cd  ${SI_TMPDIR}/Singular-${S_VERSION}/Singular; sleep 2;\
693        touch  grammar.cc;\
694        touch  scanner.cc;\
695        cd ../..;\
696        tar cf - Singular-${S_VERSION}| ${MYGZIP} > Singular-${S_VERSION}.tar.gz
697        mv ${SI_TMPDIR}/Singular-${S_VERSION}.tar.gz .
698        rm -rf ${SI_TMPDIR}
699
700##############################################################
701# stuff for configure
702Makefile : Makefile.in config.status
703        CONFIG_FILES=Makefile ./config.status
704
705doc/Makefile: doc/Makefile.in config.status
706        CONFIG_FILES=doc/Makefile ./config.status
707
708config.status: configure
709        ./config.status --recheck
710
711configure: configure.in
712        @echo "You need to rerun autoconf. I am proceeding, for now."
713        @touch configure
714#       autoconf
715#
Note: See TracBrowser for help on using the repository browser.