cfg.mk 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # Customize maint.mk for Autoconf. -*- Makefile -*-
  2. # Copyright (C) 2003-2004, 2006, 2008-2012 Free Software Foundation,
  3. # Inc.
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # (at your option) any later version.
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. # You should have received a copy of the GNU General Public License
  13. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  14. # This file is '-include'd into GNUmakefile.
  15. # Build with our own versions of these tools, when possible.
  16. export PATH = $(shell echo "`pwd`/tests:$$PATH")
  17. # Remove the autoreconf-provided INSTALL, so that we regenerate it.
  18. _autoreconf = autoreconf -i -v && rm -f INSTALL
  19. # Used in maint.mk's web-manual rule
  20. manual_title = Creating Automatic Configuration Scripts
  21. # The local directory containing the checked-out copy of gnulib used
  22. # in this release (override the default). The $GNULIB_SRCDIR variable
  23. # is also honored by the gnulib-provided bootstrap script, so using it
  24. # here is consistent.
  25. gnulib_dir = $${GNULIB_SRCDIR-'$(abs_srcdir)'/../gnulib}
  26. # The bootstrap tools (override the default).
  27. bootstrap-tools = automake
  28. # Set preferred lists for announcements.
  29. announcement_Cc_ = $(PACKAGE_BUGREPORT), autotools-announce@gnu.org
  30. announcement_mail-alpha = autoconf@gnu.org
  31. announcement_mail-beta = autoconf@gnu.org
  32. announcement_mail-stable = info-gnu@gnu.org, autoconf@gnu.org
  33. announcement_mail_headers_ = \
  34. To: $(announcement_mail-$(RELEASE_TYPE)) \
  35. CC: $(announcement_Cc_) \
  36. Mail-Followup-To: autoconf@gnu.org
  37. # Update files from gnulib.
  38. .PHONY: fetch gnulib-update autom4te-update
  39. fetch: gnulib-update autom4te-update
  40. gnulib-update:
  41. cp $(gnulib_dir)/build-aux/announce-gen $(srcdir)/build-aux
  42. cp $(gnulib_dir)/build-aux/config.guess $(srcdir)/build-aux
  43. cp $(gnulib_dir)/build-aux/config.sub $(srcdir)/build-aux
  44. cp $(gnulib_dir)/build-aux/elisp-comp $(srcdir)/build-aux
  45. cp $(gnulib_dir)/build-aux/gendocs.sh $(srcdir)/build-aux
  46. cp $(gnulib_dir)/build-aux/git-version-gen $(srcdir)/build-aux
  47. cp $(gnulib_dir)/build-aux/gitlog-to-changelog $(srcdir)/build-aux
  48. cp $(gnulib_dir)/build-aux/gnupload $(srcdir)/build-aux
  49. cp $(gnulib_dir)/build-aux/install-sh $(srcdir)/build-aux
  50. cp $(gnulib_dir)/build-aux/mdate-sh $(srcdir)/build-aux
  51. cp $(gnulib_dir)/build-aux/missing $(srcdir)/build-aux
  52. cp $(gnulib_dir)/build-aux/move-if-change $(srcdir)/build-aux
  53. cp $(gnulib_dir)/build-aux/texinfo.tex $(srcdir)/build-aux
  54. cp $(gnulib_dir)/build-aux/update-copyright $(srcdir)/build-aux
  55. cp $(gnulib_dir)/build-aux/useless-if-before-free $(srcdir)/build-aux
  56. cp $(gnulib_dir)/build-aux/vc-list-files $(srcdir)/build-aux
  57. cp $(gnulib_dir)/doc/fdl.texi $(srcdir)/doc
  58. cp $(gnulib_dir)/doc/gendocs_template $(srcdir)/doc
  59. cp $(gnulib_dir)/doc/gnu-oids.texi $(srcdir)/doc
  60. cp $(gnulib_dir)/doc/make-stds.texi $(srcdir)/doc
  61. cp $(gnulib_dir)/doc/standards.texi $(srcdir)/doc
  62. cp $(gnulib_dir)/m4/autobuild.m4 $(srcdir)/m4
  63. cp $(gnulib_dir)/top/GNUmakefile $(srcdir)
  64. cp $(gnulib_dir)/top/maint.mk $(srcdir)
  65. WGET = wget
  66. WGETFLAGS = -C off
  67. ## Fetch the latest versions of files we care about.
  68. automake_gitweb = \
  69. http://git.savannah.gnu.org/gitweb/?p=automake.git;a=blob_plain;hb=HEAD;
  70. autom4te_files = \
  71. Autom4te/Configure_ac.pm \
  72. Autom4te/Channels.pm \
  73. Autom4te/FileUtils.pm \
  74. Autom4te/Getopt.pm \
  75. Autom4te/XFile.pm
  76. move_if_change = '$(abs_srcdir)'/build-aux/move-if-change
  77. autom4te-update:
  78. rm -fr Fetchdir > /dev/null 2>&1
  79. mkdir -p Fetchdir/Autom4te
  80. for file in $(autom4te_files); do \
  81. infile=`echo $$file | sed 's/Autom4te/Automake/g'`; \
  82. $(WGET) $(WGET_FLAGS) \
  83. "$(automake_gitweb)f=lib/$$infile" \
  84. -O "Fetchdir/$$file" || exit; \
  85. done
  86. perl -pi -e 's/Automake::/Autom4te::/g' Fetchdir/Autom4te/*.pm
  87. for file in $(autom4te_files); do \
  88. $(move_if_change) Fetchdir/$$file $(srcdir)/lib/$$file || exit; \
  89. done
  90. rm -fr Fetchdir > /dev/null 2>&1
  91. # Tests not to run.
  92. local-checks-to-skip ?= \
  93. changelog-check \
  94. sc_GPL_version \
  95. sc_cast_of_alloca_return_value \
  96. sc_m4_quote_check \
  97. sc_makefile_at_at_check \
  98. sc_prohibit_HAVE_MBRTOWC \
  99. sc_prohibit_always-defined_macros \
  100. sc_prohibit_always_true_header_tests \
  101. sc_prohibit_magic_number_exit \
  102. sc_prohibit_stat_st_blocks \
  103. sc_unmarked_diagnostics
  104. # Always use shorthand copyrights.
  105. update-copyright-env = \
  106. UPDATE_COPYRIGHT_USE_INTERVALS=1 \
  107. UPDATE_COPYRIGHT_MAX_LINE_LENGTH=72
  108. # Prevent incorrect NEWS edits.
  109. old_NEWS_hash = 54ad39275441a2a3fcbe6182da4f84fb
  110. exclude_file_name_regexp--sc_prohibit_undesirable_word_seq = \
  111. ^(maint\.mk|build-aux/texinfo\.tex)$$
  112. exclude_file_name_regexp--sc_prohibit_test_minus_ao = \
  113. ^(maint\.mk|doc/autoconf\.texi)$$
  114. exclude_file_name_regexp--sc_prohibit_atoi_atof = ^doc/autoconf\.texi$$
  115. exclude_file_name_regexp--sc_useless_cpp_parens = \
  116. ^(build-aux/config\.guess|doc/standards\.texi)$$
  117. exclude_file_name_regexp--sc_trailing_blank = ^build-aux/texinfo\.tex$$
  118. exclude_file_name_regexp--sc_two_space_separator_in_usage = \
  119. ^build-aux/gnupload$$