source: git/Makefile.in @ fcef59

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