source: git/Makefile.in @ a76a0d

spielwiese
Last change on this file since a76a0d was f890c9, checked in by Olaf Bachmann <obachman@…>, 26 years ago
* added target staticbindist git-svn-id: file:///usr/local/Singular/svn/trunk@788 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 4.7 KB
Line 
1SHELL           = /bin/sh
2
3PRODUCT         = Singular
4SINGULAR_MAJOR_VERSION  = @SINGULAR_MAJOR_VERSION@
5SINGULAR_MINOR_VERSION  = @SINGULAR_MINOR_VERSION@
6
7DISTNAME        = ${PRODUCT}-full-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}
8BINDISTNAME     = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.@host@
9STATIC_BINDISTNAME      = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.static.@host@
10SHAREDISTNAME   = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}-share
11MKINSTALLDIRS   = ./mkinstalldirs
12
13@SET_MAKE@
14BUILD_SUBDIRS   = @CONFIG_SUBDIRS@
15SUBDIRS         = @SUBDIRS@
16
17prefix          = @prefix@
18exec_prefix     = @exec_prefix@
19infodir         = @infodir@
20datadir         = @datadir@
21bindir          = @bindir@
22
23TEMPDIR         = /tmp
24
25
26all 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
35clean distclean mostlyclean maintainer-clean:
36        for SUBDIR in ${SUBDIRS}; \
37        do \
38                echo ${MAKE} $@ in $${SUBDIR}; \
39                cd $${SUBDIR}; \
40                ${MAKE} $@; \
41                cd .. ;\
42        done;\
43        rm -rf *~ a.out core *.o .log lib bin info share include; \
44        if test "$@" = distclean || test "$@" = maintainer-clean; then \
45          rm -f Makefile config.cache config.log config.status TAGS* *.gz *.tar; \
46        fi; \
47        if test "$@" = maintainer-clean; then \
48          echo "This command is inteneded for maintainer use, only" ; \
49          rm -f configure ;\
50        fi
51
52dist:
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
62bindist: ${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
79staticbindist: ${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
96dosdist: 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
112sharedist: ${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
139Singular/Singular.exe:
140        ./configure.dos
141        ${MAKE} clean
142        ${MAKE} install
143
144Singular factory libfac MP gmp:
145        cd $@; ${MAKE} all
146
147check:
148        cd Singular; ${MAKE} check
149
150Makefile : Makefile.in config.status
151        ./config.status
152
153config.status : configure
154        ./config.status --recheck
155
156configure: configure.in
157        @echo "You need to rerun autoconf. I am proceeding, for now."
158        @touch configure
159#       autoconf
160#
Note: See TracBrowser for help on using the repository browser.