local.mk 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # GNU Guix --- Functional package management for GNU
  2. # Copyright © 2018 Julien Lepiller <julien@lepiller.eu>
  3. # Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
  4. #
  5. # This file is part of GNU Guix.
  6. #
  7. # GNU Guix is free software; you can redistribute it and/or modify it
  8. # under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 3 of the License, or (at
  10. # your option) any later version.
  11. #
  12. # GNU Guix is distributed in the hope that it will be useful, but
  13. # 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
  18. # along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
  19. DOC_PO_FILES = \
  20. %D%/guix-manual.de.po \
  21. %D%/guix-manual.es.po \
  22. %D%/guix-manual.fr.po \
  23. %D%/guix-manual.pt_BR.po \
  24. %D%/guix-manual.ru.po \
  25. %D%/guix-manual.zh_CN.po
  26. DOC_COOKBOOK_PO_FILES = \
  27. %D%/guix-cookbook.de.po \
  28. %D%/guix-cookbook.fr.po \
  29. %D%/guix-cookbook.ko.po \
  30. %D%/guix-cookbook.sk.po
  31. EXTRA_DIST = \
  32. %D%/guix-manual.pot \
  33. %D%/guix-cookbook.pot \
  34. $(DOC_PO_FILES) \
  35. $(DOC_COOKBOOK_PO_FILES)
  36. POT_OPTIONS = \
  37. --package-name "guix manual" --package-version "$(VERSION)" \
  38. --copyright-holder "the authors of Guix (msgids)" \
  39. --msgid-bugs-address "bug-guix@gnu.org"
  40. %D%/%.pot: $(srcdir)/doc/%.texi
  41. $(AM_V_PO4A)$(PO4A_UPDATEPO) -M UTF-8 -f texinfo -m "$<" \
  42. -p "$@" $(POT_OPTIONS) && \
  43. touch $@
  44. %D%/guix-manual.pot: %D%/guix.pot %D%/contributing.pot
  45. msgcat $^ > $@
  46. doc-pot-update: %D%/guix-manual.pot %D%/guix-cookbook.pot
  47. .PHONY: doc-pot-update