Collection of DPF-based plugins for packaging
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.

76 lines
1.9KB

  1. # ===========================================================================
  2. # https://www.gnu.org/software/autoconf-archive/ax_extra_dist.html
  3. # ===========================================================================
  4. #
  5. # SYNOPSIS
  6. #
  7. # AX_EXTRA_DIST
  8. #
  9. # DESCRIPTION
  10. #
  11. # Allow support for custom dist targets.
  12. #
  13. # To add custom dist targets, you must create a dist-<TYPE> target within
  14. # your Makefile.am, where <TYPE> is the name of the dist and then add
  15. # <TYPE> to EXTRA_SRC_DISTS or EXTRA_BIN_DISTS. For example:
  16. #
  17. # dist-foobar:
  18. # <rules for making the foobar dist>
  19. #
  20. # EXTRA_BIN_DISTS += foobar
  21. #
  22. # You can then build all the src dist targets by running:
  23. #
  24. # make dist-src
  25. #
  26. # You can build all the binary dist targets by running:
  27. #
  28. # make dist-bin
  29. #
  30. # and you can build both the src and dist targets by running:
  31. #
  32. # make all-dist
  33. #
  34. # LICENSE
  35. #
  36. # Copyright (c) 2009 Tom Howard <tomhoward@users.sf.net>
  37. #
  38. # Copying and distribution of this file, with or without modification, are
  39. # permitted in any medium without royalty provided the copyright notice
  40. # and this notice are preserved. This file is offered as-is, without any
  41. # warranty.
  42. #serial 12
  43. AC_DEFUN([AX_EXTRA_DIST],
  44. [
  45. AC_MSG_NOTICE([adding custom dist support])
  46. AM_CONDITIONAL(USING_AX_EXTRA_DIST, [true])
  47. AX_ADD_AM_MACRO_STATIC([
  48. EXTRA_SRC_DISTS =
  49. EXTRA_BIN_DISTS =
  50. dist-src-extra:
  51. @echo \"Making custom src targets...\"
  52. @cd \$(top_builddir); \\
  53. list='\$(EXTRA_SRC_DISTS)'; \\
  54. for dist in \$\$list; do \\
  55. \$(MAKE) \$(AM_MAKEFLAGS) dist-\$\$dist; \\
  56. done
  57. dist-src: dist-all dist-src-extra
  58. dist-bin:
  59. @echo \"Making custom binary targets...\"
  60. @cd \$(top_builddir); \\
  61. list='\$(EXTRA_BIN_DISTS)'; \\
  62. for dist in \$\$list; do \\
  63. \$(MAKE) \$(AM_MAKEFLAGS) dist-\$\$dist; \\
  64. done
  65. all-dist dist2 dist-all2: dist-src dist-bin
  66. all-dist-check dist2-check dist-all-check: dist-check dist-src-extra dist-bin
  67. ])
  68. ])# AX_EXTRA_DIST