PageRenderTime 47ms CodeModel.GetById 20ms RepoModel.GetById 1ms app.codeStats 0ms

/Makefile.top

#
Unknown | 126 lines | 110 code | 16 blank | 0 comment | 0 complexity | 147f8a9367a726848e75785b4ee9518b MD5 | raw file
Possible License(s): GPL-2.0
  1. ## -*- makefile -*-
  2. ##
  3. ## Include file for automake
  4. ##
  5. ## Copyright (C) 2008, 2009 Francesco Salvestrini
  6. ##
  7. ## This program is free software; you can redistribute it and/or modify
  8. ## it under the terms of the GNU General Public License as published by
  9. ## the Free Software Foundation; either version 2 of the License, or
  10. ## (at your option) any later version.
  11. ##
  12. ## This program is distributed in the hope that it will be useful,
  13. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. ## GNU General Public License for more details.
  16. ##
  17. ## You should have received a copy of the GNU General Public License along
  18. ## with this program; if not, write to the Free Software Foundation, Inc.,
  19. ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  20. ##
  21. ##
  22. ## Maintainer related targets
  23. ##
  24. BUILT_SOURCES += $(top_srcdir)/.version
  25. $(top_srcdir)/.version:
  26. echo $(VERSION) > $@-t && mv $@-t $@
  27. dist-hook-version:
  28. echo $(VERSION) > $(distdir)/.tarball-version
  29. EXTRA_DIST += $(DNT_DB) AUTHORS.in
  30. TODO: $(DNT_DB)
  31. $(DNT_BIN) \
  32. --database=$(DNT_DB) \
  33. --mono \
  34. show \
  35. --filter="not done" \
  36. --line-format="* %t" \
  37. --width=78 \
  38. --indent-fill="" \
  39. --unindent-fill="" \
  40. --level-fill="" \
  41. --output=TODO || { \
  42. rm -f TODO ; \
  43. exit 1 ; \
  44. }
  45. MAINTAINERCLEANFILES += TODO
  46. EXTRA_DIST += TODO
  47. .releases:
  48. $(GITTAG_TO_DATE) > .releases || { \
  49. rm -f .releases ; \
  50. exit 1 ; \
  51. }
  52. MAINTAINERCLEANFILES += .releases
  53. EXTRA_DIST += .releases
  54. NEWS: $(DNT_DB) .releases
  55. DNT_BIN="$(DNT_BIN)" \
  56. DNT_DB="$(DNT_DB)" \
  57. $(RELEASES_TO_NEWS) .releases NEWS || { \
  58. rm -f NEWS ; \
  59. exit 1 ; \
  60. }
  61. MAINTAINERCLEANFILES += NEWS
  62. EXTRA_DIST += NEWS
  63. AUTHORS:
  64. rm -f AUTHORS && \
  65. touch AUTHORS && \
  66. cat $(srcdir)/AUTHORS.in >> AUTHORS && \
  67. $(GITLOG_TO_COMMITTERS) | $(SED) -e 's,\(.*\), \1,' >> AUTHORS && \
  68. echo "" >> AUTHORS || { \
  69. rm -f AUTHORS ; \
  70. exit 1 ; \
  71. }
  72. MAINTAINERCLEANFILES += AUTHORS
  73. EXTRA_DIST += AUTHORS
  74. ChangeLog:
  75. $(GITLOG_TO_CHANGELOG) > ChangeLog || { \
  76. rm -f ChangeLog ; \
  77. exit 1 ; \
  78. }
  79. MAINTAINERCLEANFILES += ChangeLog
  80. EXTRA_DIST += ChangeLog
  81. dist-hook-bootstrap:
  82. chmod a-x $(distdir)/bootstrap
  83. dist-hook-files: NEWS TODO ChangeLog AUTHORS dist-hook-bootstrap
  84. dist-hook: dist-hook-version dist-hook-files
  85. dist-gpg: dist
  86. gpg --yes -b --use-agent \
  87. -o $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig \
  88. $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz && \
  89. gpg --verify $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig || { \
  90. rm -f $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig ; \
  91. exit 1 ; \
  92. }
  93. MAINTAINERCLEANFILES += $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig
  94. dist-upload: dist-gpg
  95. chmod 644 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz && \
  96. chmod 644 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig && \
  97. scp $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
  98. $${USER}@dl.sv.nongnu.org:/releases/grmrextractors && \
  99. scp $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz.sig \
  100. $${USER}@dl.sv.nongnu.org:/releases/grmrextractors || { \
  101. exit 1 ; \
  102. }
  103. announcement:
  104. $(ANNOUNCE_GEN) \
  105. --release-type=alpha \
  106. --package=$(PACKAGE_TARNAME) \
  107. --prev=$(PACKAGE_VERSION).test \
  108. --curr=$(PACKAGE_VERSION) \
  109. --gpg-key-id=TEST \
  110. --url-dir=TEST