X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;f=Makefile.devel;h=74e326d79576d6486868a1b991d2d0fb0bca9352;hb=ec25de1e6ca125433a2dbd7f6f85fb09c16c2743;hp=74e9e7fa6462aef3f065d4229effd25dd13b2299;hpb=697c3c7f8041deb0f55b60ece032e58633e0fb83;p=cln.git diff --git a/Makefile.devel b/Makefile.devel index 74e9e7f..74e326d 100644 --- a/Makefile.devel +++ b/Makefile.devel @@ -7,31 +7,50 @@ SHELL = /bin/sh MAKE = make -# GNU tar together with GNU bzip2. Excellent performance. +# GNU tar together with GNU bzip2. Slow, but excellent compresion rates. PACK = tar PACKOPT = cvfhj PACKEXT = .tar.bz2 +EXCLUDE=--exclude CVS\* --exclude \*.o --exclude *.lo --exclude .cvsignore \ + --exclude \*~ --exclude .\#\* --exclude .libs \ + --exclude autogen.sh \ + --exclude ${AUTOCONF_CACHE} -all: configures documentation +all: build-prerequisites documentation +build-prerequisites: configures + CONFIGURES = configure CONFIGURES_IN = configure.ac AUTOCONF_FILES = autoconf/aclocal.m4 +AUTOCONF_MACROS = ${wildcard m4/*.m4} # originally borrowed from GNU clisp +AUTOCONF = autoconf +AUTOCONF_CACHE = autom4te.cache configures: ${CONFIGURES} -configure: configure.ac ${AUTOCONF_FILES} - autoconf --include=autoconf +configure: configure.ac ${AUTOCONF_FILES} ${AUTOCONF_MACROS} + ${AUTOCONF} --include=autoconf -I m4 + +# Release: +SRC_DIST=/tmp/cln-${VER}${PACKEXT} +VER=${shell echo `grep "CL_VERSION " include/cln/version.h |sed 's/^.*CL_VERSION \(.*\)$$/\1/'`} + +src-distrib: include/cln/version.h force + ${MAKE} -f Makefile.devel src--distrib TOPDIR=cln-${VER} -CLISP_M4DIR = ~/contrib/clisp/src/m4 +src--distrib: clean + ln -s . ${TOPDIR} + ${PACK} ${PACKOPT} ${SRC_DIST} ${EXCLUDE} --exclude ${TOPDIR}/${TOPDIR} ${TOPDIR} + rm -f ${TOPDIR} -autoconf/aclocal.m4: ${wildcard m4/*.m4} - aclocal -I m4 -I ${CLISP_M4DIR} --output=autoconf/aclocal.m4 +clean: force + test -f Makefile && ${MAKE} distclean -# Syntaxcheck +# Syntaxcheck: check-configures: ${CONFIGURES} set -e; for f in ${CONFIGURES}; do bash -x -n $$f; done