1 # This is the developer's makefile, not the user's makefile.
2 # Don't use it unless you know exactly what you do!
5 # Some important programs:
10 # GNU tar together with GNU bzip2. Slow, but excellent compresion rates.
15 EXCLUDE=--exclude CVS\* --exclude \*.o --exclude *.lo --exclude .cvsignore \
16 --exclude \*~ --exclude .\#\* --exclude .libs \
17 --exclude autogen.sh \
18 --exclude ${AUTOCONF_CACHE}
20 all: build-prerequisites documentation
23 build-prerequisites: configures
25 CONFIGURES = configure
26 CONFIGURES_IN = configure.ac
28 AUTOCONF_FILES = autoconf/aclocal.m4
29 AUTOCONF_MACROS = ${wildcard m4/*.m4} # originally borrowed from GNU clisp
31 AUTOCONF_CACHE = autom4te.cache
33 configures: ${CONFIGURES}
35 configure: configure.ac ${AUTOCONF_FILES} ${AUTOCONF_MACROS}
36 ${AUTOCONF} --include=autoconf -I m4
39 SRC_DIST=/tmp/cln-${VER}${PACKEXT}
40 VER=${shell echo `grep "CL_VERSION " include/cln/version.h |sed 's/^.*CL_VERSION \(.*\)$$/\1/'`}
42 src-distrib: include/cln/version.h force
43 ${MAKE} -f Makefile.devel src--distrib TOPDIR=cln-${VER}
47 ${PACK} ${PACKOPT} ${SRC_DIST} ${EXCLUDE} --exclude ${TOPDIR}/${TOPDIR} ${TOPDIR}
51 test -f Makefile && ${MAKE} distclean
54 check-configures: ${CONFIGURES}
55 set -e; for f in ${CONFIGURES}; do bash -x -n $$f; done
59 cd doc && ${MAKE} -f Makefile.devel documentation