1 | SHELL = /bin/sh |
---|
2 | |
---|
3 | PRODUCT = Singular |
---|
4 | SINGULAR_MAJOR_VERSION = @SINGULAR_MAJOR_VERSION@ |
---|
5 | SINGULAR_MINOR_VERSION = @SINGULAR_MINOR_VERSION@ |
---|
6 | |
---|
7 | DISTNAME = ${PRODUCT}-full-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION} |
---|
8 | BINDISTNAME = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}.@host@ |
---|
9 | SHAREDISTNAME = ${PRODUCT}-${SINGULAR_MAJOR_VERSION}.${SINGULAR_MINOR_VERSION}-share |
---|
10 | MKINSTALLDIRS = ./mkinstalldirs |
---|
11 | |
---|
12 | @SET_MAKE@ |
---|
13 | BUILD_SUBDIRS = @CONFIG_SUBDIRS@ |
---|
14 | SUBDIRS = @SUBDIRS@ |
---|
15 | |
---|
16 | prefix = @prefix@ |
---|
17 | exec_prefix = @exec_prefix@ |
---|
18 | infodir = @infodir@ |
---|
19 | datadir = @datadir@ |
---|
20 | bindir = @bindir@ |
---|
21 | |
---|
22 | TEMPDIR = /tmp |
---|
23 | |
---|
24 | |
---|
25 | all 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 | |
---|
34 | clean 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 | |
---|
51 | dist: |
---|
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 | |
---|
61 | bindist: ${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 | |
---|
77 | sharedist: ${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 | |
---|
101 | Singular factory libfac MP gmp: |
---|
102 | cd $@; ${MAKE} all |
---|
103 | |
---|
104 | check: |
---|
105 | cd Singular; ${MAKE} check |
---|
106 | |
---|
107 | Makefile : Makefile.in config.status |
---|
108 | ./config.status |
---|
109 | |
---|
110 | config.status : configure |
---|
111 | ./config.status --recheck |
---|
112 | |
---|
113 | configure: configure.in |
---|
114 | @echo "You need to rerun autoconf. I am proceeding, for now." |
---|
115 | @touch configure |
---|
116 | # autoconf |
---|
117 | # |
---|