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 ${AUTOCONF_CACHE}
19 all: configures documentation
22 CONFIGURES = configure
23 CONFIGURES_IN = configure.ac
25 AUTOCONF_FILES = autoconf/aclocal.m4
26 AUTOCONF_MACROS = ${wildcard m4/*.m4} # originally borrowed from GNU clisp
28 AUTOCONF_CACHE = autom4te.cache
30 configures: ${CONFIGURES}
32 configure: configure.ac ${AUTOCONF_FILES} ${AUTOCONF_MACROS}
33 ${AUTOCONF} --include=autoconf -I m4
36 SRC_DIST=/tmp/cln-${VER}${PACKEXT}
37 VER=${shell echo `grep "CL_VERSION " include/cln/version.h |sed 's/^.*CL_VERSION \(.*\)$$/\1/'`}
39 src-distrib: include/cln/version.h force
40 ${MAKE} -f Makefile.devel src--distrib TOPDIR=cln-${VER}
44 ${PACK} ${PACKOPT} ${SRC_DIST} ${EXCLUDE} --exclude ${TOPDIR}/${TOPDIR} ${TOPDIR}
48 test -f Makefile && ${MAKE} distclean
51 check-configures: ${CONFIGURES}
52 set -e; for f in ${CONFIGURES}; do bash -x -n $$f; done
56 cd doc && ${MAKE} -f Makefile.devel documentation