X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;f=Makefile.devel;h=50fb6e32f4c1e073a767a53358b471481d73d21b;hb=2503cd33e10112e27e34980738404c4b5d2ee87c;hp=5eda2542f51e94db6f929ded621590040bfde0e0;hpb=63b3e781e05f0f30d19123c0fc959f333f37b414;p=cln.git diff --git a/Makefile.devel b/Makefile.devel index 5eda254..50fb6e3 100644 --- a/Makefile.devel +++ b/Makefile.devel @@ -7,42 +7,58 @@ SHELL = /bin/sh MAKE = make -# GNU tar together with GNU gzip. Excellent performance. +# GNU tar together with GNU bzip2. Slow, but excellent compresion rates. PACK = tar -PACKOPT = cvfhz -PACKEXT = .tar.z +PACKOPT = cvfhj +PACKEXT = .tar.bz2 +EXCLUDE=--exclude CVS --exclude \*.o --exclude *.lo --exclude .cvsignore \ + --exclude \*~ --exclude .\#\* --exclude .libs \ + --exclude ${AUTOCONF_CACHE} -all : configures documentation +all: configures documentation CONFIGURES = configure -CONFIGURES_IN = configure.in +CONFIGURES_IN = configure.ac -AUTOCONF_FILES = autoconf/aclocal.m4 autoconf/acgeneral.m4 autoconf/acspecific.m4 +AUTOCONF_FILES = autoconf/aclocal.m4 +AUTOCONF = autoconf +AUTOCONF_CACHE = autom4te.cache -configures : $(CONFIGURES) +configures: ${CONFIGURES} -configure : configure.in $(AUTOCONF_FILES) - autoconf/autoconf -m autoconf +configure: configure.ac ${AUTOCONF_FILES} + ${AUTOCONF} --include=autoconf -# # ACLOCAL = /home/bruno/clisp/src/autoconf/aclocal.m4 -# # ACSELECT = /home/bruno/clisp/src/autoconf/acselect -# # OTHERMACROS = /home/bruno/clisp/src/autoconf/libtool.m4 -# ACLOCAL = /home/kreckel/contrib/src/clisp/src/autoconf/aclocal.m4 -# ACSELECT = /home/kreckel/contrib/src/clisp/src/autoconf/acselect -# OTHERMACROS = /home/kreckel/contrib/src/clisp/src/autoconf/libtool.m4 -# -# autoconf/aclocal.m4 : $(ACLOCAL) -# ($(ACSELECT) `cat $(CONFIGURES_IN) | grep '^[A-Z][A-Z]_' | sed 's,[^A-Z_].*$$,,g' | sort | uniq` < $(ACLOCAL) ; cat $(OTHERMACROS) | sed -e 's,AC_CANONICAL_HOST,CL_CANONICAL_HOST,g' -e 's,AC_PROG_RANLIB,CL_PROG_RANLIB,g') > autoconf/aclocal.m4 +# This is the upstream location for most of the .m4 files: +CLISP_M4DIR = ~/contrib/clisp/src/m4 -# Syntaxcheck -check-configures : $(CONFIGURES) - set -e; for f in $(CONFIGURES); do bash -x -n $$f; done +autoconf/aclocal.m4: ${wildcard m4/*.m4} + aclocal -I m4 -I ${CLISP_M4DIR} --output=autoconf/aclocal.m4 +# Release: +SRC_DIST=/tmp/cln-${VER}${PACKEXT} +VER=${shell echo `grep "CL_VERSION " include/cln/version.h |sed 's/^.*CL_VERSION \(.*\)$$/\1/'`} -documentation : force - cd doc && $(MAKE) -f Makefile.devel documentation +src-distrib: include/cln/version.h force + ${MAKE} -f Makefile.devel src--distrib TOPDIR=cln-${VER} -force : +src--distrib: clean + ln -s . ${TOPDIR} + ${PACK} ${PACKOPT} ${SRC_DIST} ${EXCLUDE} --exclude ${TOPDIR}/${TOPDIR} ${TOPDIR} + rm -f ${TOPDIR} + +clean: force + test -f Makefile && ${MAKE} distclean + +# Syntaxcheck: +check-configures: ${CONFIGURES} + set -e; for f in ${CONFIGURES}; do bash -x -n $$f; done + + +documentation: force + cd doc && ${MAKE} -f Makefile.devel documentation + +force: