source: git/Makefile.in @ 4a81ec

spielwiese
Last change on this file since 4a81ec was 0164d0, checked in by Olaf Bachmann <obachman@…>, 27 years ago
Wed Aug 27 15:35:00 1997 Olaf Bachmann <obachman@mathematik.uni-kl.de> * added file README.mac, README.dos; added dosdist target to Makefile.in, small changes for clean dos-compilation and distribution * added reqeust to register to README and COPYING files git-svn-id: file:///usr/local/Singular/svn/trunk@631 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 4.0 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@
9SHAREDISTNAME   = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}-share
10MKINSTALLDIRS   = ./mkinstalldirs
11
12@SET_MAKE@
13BUILD_SUBDIRS   = @CONFIG_SUBDIRS@
14SUBDIRS         = @SUBDIRS@
15
16prefix          = @prefix@
17exec_prefix     = @exec_prefix@
18infodir         = @infodir@
19datadir         = @datadir@
20bindir          = @bindir@
21
22TEMPDIR         = /tmp
23
24
25all install uninstall info dvi : Makefile
26        for SUBDIR in ${BUILD_SUBDIRS}; \
27        do \
28                echo ${MAKE} $@ in $${SUBDIR}; \
29                cd $${SUBDIR}; \
30                ${MAKE} $@; \
31                cd .. ;\
32        done
33
34clean distclean mostlyclean maintainer-clean:
35        for SUBDIR in ${SUBDIRS}; \
36        do \
37                echo ${MAKE} $@ in $${SUBDIR}; \
38                cd $${SUBDIR}; \
39                ${MAKE} $@; \
40                cd .. ;\
41        done;\
42        rm -rf *~ a.out core *.o .log lib bin info share include; \
43        if test "$@" = distclean || test "$@" = maintainer-clean; then \
44          rm -f Makefile config.cache config.log config.status TAGS* *.gz *.tar; \
45        fi; \
46        if test "$@" = maintainer-clean; then \
47          echo "This command is inteneded for maintainer use, only" ; \
48          rm -f configure ;\
49        fi
50
51dist:
52        rm -rf ${DISTNAME}.tar* ${TEMPDIR}/${DISTNAME}*
53        mkdir ${TEMPDIR}/${DISTNAME}
54        - cp -pR . ${TEMPDIR}/${DISTNAME}
55        cd ${TEMPDIR}/${DISTNAME}; ${MAKE} distclean;
56        cd ${TEMPDIR}; tar cf ${DISTNAME}.tar ${DISTNAME}
57        rm -rf ${TEMPDIR}/${DISTNAME}
58        - gzip -9 ${TEMPDIR}/${DISTNAME}.tar
59        - mv ${TEMPDIR}/${DISTNAME}.tar.gz .
60
61bindist: ${bindir}/Singular
62        rm -rf  ${BINDISTNAME}*
63        if test "${datadir}" != /usr/local/share || \
64           test "${infodir}" != /usr/local/info; then \
65                cd Singular ;\
66                mv mod2.h mod2.h.orig ;\
67                sed -f ../sed.bindist.cmd mod2.h.orig > mod2.h ;\
68                /bin/rm -f febase.o misc.o;\
69                ${MAKE} Singular ;\
70                /bin/rm -f febase.o misc.o;\
71                mv mod2.h.orig mod2.h;\
72        fi
73        mv Singular/Singular ${BINDISTNAME}
74        strip ${BINDISTNAME}
75        gzip -9 ${BINDISTNAME}
76
77dosdist: Singular/Singular.exe
78        mkdir /tmp/singdos
79        mkdir /tmp/singdos/Singular
80        mkdir /tmp/singdos/Singular/info
81        mkdir /tmp/singdos/Singular/share
82        mkdir /tmp/singdos/Singular/share/Singular
83        cp Singular/doc/singular.hlp /tmp/singdos/Singular/info
84        cp Singular/Singular.exe /tmp/singdos/Singular
85        cp Singular/LIB/*.lib /tmp/singdos/Singular/share/Singular
86        cp -R Singular/LIB/gftables /tmp/singdos/Singular/share/Singular
87        cp COPYING.share /tmp/singdos/Singular/COPYING
88        cp README.dos /tmp/singdos/Singular/README
89        cd /tmp/singdos/; zip -k -r sing Singular; cd -
90        mv /tmp/singdos/sing.zip Singular.zip
91        /bin/rm -rf /tmp/singdos
92
93sharedist: ${bindir}/Singular
94        cd Singular; ${MAKE} dvi; ${MAKE} info
95        /bin/rm -rf ${TEMPDIR}/Singular-share
96        ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/info
97        ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/share/Singular/doc
98        ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/share/Singular/gftables
99        cp Singular/LIB/*.lib ${TEMPDIR}/Singular-share/share/Singular
100        cp Singular/LIB/gftables/[0-9]* \
101                ${TEMPDIR}/Singular-share/share/Singular/gftables
102        cp Singular/doc/singular.hlp ${TEMPDIR}/Singular-share/info
103        cp Singular/doc/singular.dvi Singular/doc/tutor.dvi \
104                ${TEMPDIR}/Singular-share/share/Singular/doc
105        cd  ${TEMPDIR}/Singular-share/share/Singular/; \
106        ln -s ../../info/singular.hlp singular.hlp
107        cp COPYING.share README.share ${TEMPDIR}/Singular-share
108        cd ${TEMPDIR}/Singular-share;\
109        tar cf ${SHAREDISTNAME}.tar * ;\
110        gzip -9 ${SHAREDISTNAME}.tar
111        mv ${TEMPDIR}/Singular-share/${SHAREDISTNAME}.tar.gz .
112        /bin/rm -rf ${TEMPDIR}/Singular-share
113
114${bindir}/Singular:
115        ${MAKE} install
116
117Singular/Singular.exe:
118        ./configure.dos
119        ${MAKE} clean
120        ${MAKE} install
121
122Singular factory libfac MP gmp:
123        cd $@; ${MAKE} all
124
125check:
126        cd Singular; ${MAKE} check
127
128Makefile : Makefile.in config.status
129        ./config.status
130
131config.status : configure
132        ./config.status --recheck
133
134configure: configure.in
135        @echo "You need to rerun autoconf. I am proceeding, for now."
136        @touch configure
137#       autoconf
138#
Note: See TracBrowser for help on using the repository browser.