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
27 AUTOCONF_CACHE = autom4te.cache
29 configures: ${CONFIGURES}
31 configure: configure.ac ${AUTOCONF_FILES}
32 ${AUTOCONF} --include=autoconf
34 # This is the upstream location for most of the .m4 files:
35 CLISP_M4DIR = ~/contrib/clisp/src/m4
37 autoconf/aclocal.m4: ${wildcard m4/*.m4}
38 aclocal -I m4 -I ${CLISP_M4DIR} --output=autoconf/aclocal.m4
41 SRC_DIST=/tmp/cln-${VER}${PACKEXT}
42 VER=${shell echo `grep "CL_VERSION " include/cln/version.h |sed 's/^.*CL_VERSION \(.*\)$$/\1/'`}
44 src-distrib: include/cln/version.h force
45 ${MAKE} -f Makefile.devel src--distrib TOPDIR=cln-${VER}
49 ${PACK} ${PACKOPT} ${SRC_DIST} ${EXCLUDE} --exclude ${TOPDIR}/${TOPDIR} ${TOPDIR}
53 test -f Makefile && ${MAKE} distclean
56 check-configures: ${CONFIGURES}
57 set -e; for f in ${CONFIGURES}; do bash -x -n $$f; done
61 cd doc && ${MAKE} -f Makefile.devel documentation