source: git/Makefile.in @ b262594

spielwiese
Last change on this file since b262594 was b262594, checked in by Olaf Bachmann <obachman@…>, 26 years ago
* changed handling of version numbers git-svn-id: file:///usr/local/Singular/svn/trunk@466 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 3.3 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
77sharedist: ${bindir}/Singular
78        cd Singular; ${MAKE} dvi; ${MAKE} info
79        /bin/rm -rf ${TEMPDIR}/Singular-share
80        ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/info
81        ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/share/Singular/doc
82        ${MKINSTALLDIRS} ${TEMPDIR}/Singular-share/share/Singular/gftables
83        cp Singular/LIB/*.lib ${TEMPDIR}/Singular-share/share/Singular
84        cp Singular/LIB/gftables/[0-9]* \
85                ${TEMPDIR}/Singular-share/share/Singular/gftables
86        cp Singular/doc/singular.hlp ${TEMPDIR}/Singular-share/info
87        cp Singular/doc/singular.dvi Singular/doc/tutor.dvi \
88                ${TEMPDIR}/Singular-share/share/Singular/doc
89        cd  ${TEMPDIR}/Singular-share/share/Singular/; \
90        ln -s ../../info/singular.hlp singular.hlp
91        cp COPYING.share README.share ${TEMPDIR}/Singular-share
92        cd ${TEMPDIR}/Singular-share;\
93        tar cf ${SHAREDISTNAME}.tar * ;\
94        gzip -9 ${SHAREDISTNAME}.tar
95        mv ${TEMPDIR}/Singular-share/${SHAREDISTNAME}.tar.gz .
96        /bin/rm -rf ${TEMPDIR}/Singular-share
97
98${bindir}/Singular:
99        ${MAKE} install
100
101Singular factory libfac MP gmp:
102        cd $@; ${MAKE} all
103
104check:
105        cd Singular; ${MAKE} check
106       
107Makefile : Makefile.in config.status
108        ./config.status
109
110config.status : configure
111        ./config.status --recheck
112
113configure: configure.in
114        @echo "You need to rerun autoconf. I am proceeding, for now."
115        @touch configure
116#       autoconf
117#
Note: See TracBrowser for help on using the repository browser.