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