You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.6 KiB

25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
25 years ago
  1. # This is the developer's makefile, not the user's makefile.
  2. # Don't use it unless you know exactly what you do!
  3. # Some important programs:
  4. SHELL = /bin/sh
  5. MAKE = make
  6. # GNU tar together with GNU bzip2. Slow, but excellent compresion rates.
  7. PACK = tar
  8. PACKOPT = cvfhj
  9. PACKEXT = .tar.bz2
  10. EXCLUDE=--exclude CVS\* --exclude \*.o --exclude *.lo --exclude .cvsignore \
  11. --exclude \*~ --exclude .\#\* --exclude .libs \
  12. --exclude autogen.sh \
  13. --exclude ${AUTOCONF_CACHE}
  14. all: build-prerequisites documentation
  15. build-prerequisites: configures
  16. CONFIGURES = configure
  17. CONFIGURES_IN = configure.ac
  18. AUTOCONF_FILES = autoconf/aclocal.m4
  19. AUTOCONF_MACROS = ${wildcard m4/*.m4} # originally borrowed from GNU clisp
  20. AUTOCONF = autoconf
  21. AUTOCONF_CACHE = autom4te.cache
  22. configures: ${CONFIGURES}
  23. configure: configure.ac ${AUTOCONF_FILES} ${AUTOCONF_MACROS}
  24. ${AUTOCONF} --include=autoconf -I m4
  25. # Release:
  26. SRC_DIST=/tmp/cln-${VER}${PACKEXT}
  27. VER=${shell echo `grep "CL_VERSION " include/cln/version.h |sed 's/^.*CL_VERSION \(.*\)$$/\1/'`}
  28. src-distrib: include/cln/version.h force
  29. ${MAKE} -f Makefile.devel src--distrib TOPDIR=cln-${VER}
  30. src--distrib: clean
  31. ln -s . ${TOPDIR}
  32. ${PACK} ${PACKOPT} ${SRC_DIST} ${EXCLUDE} --exclude ${TOPDIR}/${TOPDIR} ${TOPDIR}
  33. rm -f ${TOPDIR}
  34. clean: force
  35. test -f Makefile && ${MAKE} distclean
  36. # Syntaxcheck:
  37. check-configures: ${CONFIGURES}
  38. set -e; for f in ${CONFIGURES}; do bash -x -n $$f; done
  39. documentation: force
  40. cd doc && ${MAKE} -f Makefile.devel documentation
  41. force: