]> www.ginac.de Git - cln.git/blob - Makefile.devel
Fix crashes in find_univpoly_ring and related functions
[cln.git] / Makefile.devel
1 # This is the developer's makefile, not the user's makefile.
2 # Don't use it unless you know exactly what you do!
3
4
5 # Some important programs:
6 SHELL = /bin/sh
7 MAKE = make
8
9
10 # GNU tar together with GNU bzip2. Slow, but excellent compresion rates.
11 PACK = tar
12 PACKOPT = cvfhj
13 PACKEXT = .tar.bz2
14
15 EXCLUDE=--exclude CVS --exclude \*.o --exclude *.lo --exclude .cvsignore   \
16         --exclude \*~ --exclude .\#\* --exclude .libs                      \
17         --exclude ${AUTOCONF_CACHE}
18
19 all: configures documentation
20
21
22 CONFIGURES = configure
23 CONFIGURES_IN = configure.ac
24
25 AUTOCONF_FILES = autoconf/aclocal.m4
26 AUTOCONF = autoconf
27 AUTOCONF_CACHE = autom4te.cache
28
29 configures: ${CONFIGURES}
30
31 configure: configure.ac ${AUTOCONF_FILES}
32         ${AUTOCONF} --include=autoconf
33
34 # This is the upstream location for most of the .m4 files:
35 CLISP_M4DIR = ~/contrib/clisp/src/m4
36
37 autoconf/aclocal.m4: ${wildcard m4/*.m4}
38         aclocal -I m4 -I ${CLISP_M4DIR} --output=autoconf/aclocal.m4
39
40 # Release:
41 SRC_DIST=/tmp/cln-${VER}${PACKEXT}
42 VER=${shell echo `grep "CL_VERSION " include/cln/version.h |sed 's/^.*CL_VERSION \(.*\)$$/\1/'`}
43
44 src-distrib: include/cln/version.h force
45         ${MAKE} -f Makefile.devel src--distrib TOPDIR=cln-${VER}
46
47 src--distrib: clean
48         ln -s . ${TOPDIR}
49         ${PACK} ${PACKOPT} ${SRC_DIST} ${EXCLUDE} --exclude ${TOPDIR}/${TOPDIR} ${TOPDIR}
50         rm -f ${TOPDIR}
51
52 clean: force
53         test -f Makefile && ${MAKE} distclean
54
55 # Syntaxcheck:
56 check-configures: ${CONFIGURES}
57         set -e; for f in ${CONFIGURES}; do bash -x -n $$f; done
58
59
60 documentation: force
61         cd doc && ${MAKE} -f Makefile.devel documentation
62
63 force:
64