Makefile.inc 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ## Included by top-level Makefile for Automake.
  2. ## Copyright (C) 1995-2017 Free Software Foundation, Inc.
  3. ##
  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 2, or (at your option)
  7. ## any later version.
  8. ##
  9. ## This program is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ## GNU General Public License for more details.
  13. ##
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. ## ---------------- ##
  17. ## Documentation. ##
  18. ## ---------------- ##
  19. info_TEXINFOS = %D%/automake.texi %D%/automake-history.texi
  20. doc_automake_TEXINFOS = %D%/fdl.texi
  21. doc_automake_history_TEXINFOS = %D%/fdl.texi
  22. man1_MANS = \
  23. %D%/aclocal.1 \
  24. %D%/automake.1 \
  25. %D%/aclocal-$(APIVERSION).1 \
  26. %D%/automake-$(APIVERSION).1
  27. $(man1_MANS): $(top_srcdir)/configure.ac
  28. CLEANFILES += $(man1_MANS)
  29. EXTRA_DIST += %D%/help2man
  30. update_mans = \
  31. $(AM_V_GEN): \
  32. && $(MKDIR_P) %D% \
  33. && $(extend_PATH) \
  34. && $(PERL) $(srcdir)/%D%/help2man --output=$@
  35. %D%/aclocal.1 %D%/automake.1:
  36. $(AM_V_GEN): \
  37. && $(MKDIR_P) %D% \
  38. && f=`echo $@ | sed 's|.*/||; s|\.1$$||; $(transform)'` \
  39. && echo ".so man1/$$f-$(APIVERSION).1" > $@
  40. %D%/aclocal-$(APIVERSION).1: $(aclocal_script) lib/Automake/Config.pm
  41. $(update_mans) aclocal-$(APIVERSION)
  42. %D%/automake-$(APIVERSION).1: $(automake_script) lib/Automake/Config.pm
  43. $(update_mans) automake-$(APIVERSION)
  44. ## ---------------------------- ##
  45. ## Example package "amhello". ##
  46. ## ---------------------------- ##
  47. amhello_sources = \
  48. %D%/amhello/configure.ac \
  49. %D%/amhello/Makefile.am \
  50. %D%/amhello/README \
  51. %D%/amhello/src/main.c \
  52. %D%/amhello/src/Makefile.am
  53. amhello_configury = \
  54. aclocal.m4 \
  55. autom4te.cache \
  56. Makefile.in \
  57. config.h.in \
  58. configure \
  59. depcomp \
  60. install-sh \
  61. missing \
  62. src/Makefile.in
  63. dist_noinst_DATA += $(amhello_sources)
  64. dist_doc_DATA = $(srcdir)/%D%/amhello-1.0.tar.gz
  65. setup_autotools_paths = { \
  66. $(extend_PATH) \
  67. && ACLOCAL=aclocal-$(APIVERSION) && export ACLOCAL \
  68. && AUTOMAKE=automake-$(APIVERSION) && export AUTOMAKE \
  69. && AUTOCONF='$(am_AUTOCONF)' && export AUTOCONF \
  70. && AUTOM4TE='$(am_AUTOM4TE)' && export AUTOM4TE \
  71. && AUTORECONF='$(am_AUTORECONF)' && export AUTORECONF \
  72. && AUTOHEADER='$(am_AUTOHEADER)' && export AUTOHEADER \
  73. && AUTOUPDATE='$(am_AUTOUPDATE)' && export AUTOUPDATE \
  74. && true; \
  75. }
  76. # We depend on configure.ac so that we regenerate the tarball
  77. # whenever the Automake version changes.
  78. $(srcdir)/%D%/amhello-1.0.tar.gz: $(amhello_sources) $(srcdir)/configure.ac
  79. $(AM_V_GEN)tmp=amhello-output.tmp \
  80. && $(am__cd) $(srcdir)/%D%/amhello \
  81. && : Make our aclocal and automake avaiable before system ones. \
  82. && $(setup_autotools_paths) \
  83. && ( \
  84. { $(AM_V_P) || exec 5>&2 >$$tmp 2>&1; } \
  85. && $(am_AUTORECONF) -vfi \
  86. && ./configure \
  87. && $(MAKE) $(AM_MAKEFLAGS) distcheck \
  88. && $(MAKE) $(AM_MAKEFLAGS) distclean \
  89. || { \
  90. if $(AM_V_P); then :; else \
  91. echo "$@: recipe failed." >&5; \
  92. echo "See file '`pwd`/$$tmp' for details" >&5; \
  93. fi; \
  94. exit 1; \
  95. } \
  96. ) \
  97. && rm -rf $(amhello_configury) $$tmp \
  98. && mv -f amhello-1.0.tar.gz ..
  99. # vim: ft=automake noet