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.

59 lines
1.4 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
  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 ${AUTOCONF_CACHE}
  13. all: configures documentation
  14. CONFIGURES = configure
  15. CONFIGURES_IN = configure.ac
  16. AUTOCONF_FILES = autoconf/aclocal.m4
  17. AUTOCONF_MACROS = ${wildcard m4/*.m4} # originally borrowed from GNU clisp
  18. AUTOCONF = autoconf
  19. AUTOCONF_CACHE = autom4te.cache
  20. configures: ${CONFIGURES}
  21. configure: configure.ac ${AUTOCONF_FILES} ${AUTOCONF_MACROS}
  22. ${AUTOCONF} --include=autoconf -I m4
  23. # Release:
  24. SRC_DIST=/tmp/cln-${VER}${PACKEXT}
  25. VER=${shell echo `grep "CL_VERSION " include/cln/version.h |sed 's/^.*CL_VERSION \(.*\)$$/\1/'`}
  26. src-distrib: include/cln/version.h force
  27. ${MAKE} -f Makefile.devel src--distrib TOPDIR=cln-${VER}
  28. src--distrib: clean
  29. ln -s . ${TOPDIR}
  30. ${PACK} ${PACKOPT} ${SRC_DIST} ${EXCLUDE} --exclude ${TOPDIR}/${TOPDIR} ${TOPDIR}
  31. rm -f ${TOPDIR}
  32. clean: force
  33. test -f Makefile && ${MAKE} distclean
  34. # Syntaxcheck:
  35. check-configures: ${CONFIGURES}
  36. set -e; for f in ${CONFIGURES}; do bash -x -n $$f; done
  37. documentation: force
  38. cd doc && ${MAKE} -f Makefile.devel documentation
  39. force: