]> www.ginac.de Git - cln.git/blob - Makefile.devel
Avoid input stream fail state when reading number at EOF.
[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 autogen.sh                                               \
18         --exclude ${AUTOCONF_CACHE}
19
20 all: build-prerequisites documentation
21
22
23 build-prerequisites: configures
24
25 CONFIGURES = configure
26 CONFIGURES_IN = configure.ac
27
28 AUTOCONF_FILES = autoconf/aclocal.m4
29 AUTOCONF_MACROS = ${wildcard m4/*.m4} # originally borrowed from GNU clisp
30 AUTOCONF = autoconf
31 AUTOCONF_CACHE = autom4te.cache
32
33 configures: ${CONFIGURES}
34
35 configure: configure.ac ${AUTOCONF_FILES} ${AUTOCONF_MACROS}
36         ${AUTOCONF} --include=autoconf -I m4
37
38 # Release:
39 SRC_DIST=/tmp/cln-${VER}${PACKEXT}
40 VER=${shell echo `grep "CL_VERSION " include/cln/version.h |sed 's/^.*CL_VERSION \(.*\)$$/\1/'`}
41
42 src-distrib: include/cln/version.h force
43         ${MAKE} -f Makefile.devel src--distrib TOPDIR=cln-${VER}
44
45 src--distrib: clean
46         ln -s . ${TOPDIR}
47         ${PACK} ${PACKOPT} ${SRC_DIST} ${EXCLUDE} --exclude ${TOPDIR}/${TOPDIR} ${TOPDIR}
48         rm -f ${TOPDIR}
49
50 clean: force
51         test -f Makefile && ${MAKE} distclean
52
53 # Syntaxcheck:
54 check-configures: ${CONFIGURES}
55         set -e; for f in ${CONFIGURES}; do bash -x -n $$f; done
56
57
58 documentation: force
59         cd doc && ${MAKE} -f Makefile.devel documentation
60
61 force:
62