Makefile.am 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. ## Process this file with automake to produce Makefile.in
  2. all-local: man.stamp
  3. # FIXME: Use a stamp file until po4a supports them internally.
  4. man.stamp:
  5. po4a --no-backups --variable srcdir=$(srcdir) \
  6. $(srcdir)/po/po4a.cfg
  7. touch $@
  8. clean-local:
  9. po4a --rm-backups --rm-translations --variable srcdir=$(srcdir) \
  10. $(srcdir)/po/po4a.cfg
  11. rm -f man.stamp
  12. update-po:
  13. cd $(srcdir)/po && \
  14. po4a --no-backups --force --variable srcdir=../../man \
  15. ./po4a.cfg
  16. # Extract the list of languages from the po4a config file.
  17. LINGUAS = $(shell sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg)
  18. install-data-local:
  19. for lang in $(LINGUAS); do \
  20. if [ -d $(srcdir)/$$lang ]; then \
  21. files=$$(echo $(srcdir)/$$lang/*.[1-9]); \
  22. $(MAKE) install-man \
  23. mandir="$(mandir)/$$lang" \
  24. man_MANS="" \
  25. dist_man_MANS="$$files"; \
  26. fi \
  27. done
  28. uninstall-local:
  29. for lang in $(LINGUAS); do \
  30. if [ -d $(srcdir)/$$lang ]; then \
  31. files=$$(echo $(srcdir)/$$lang/*.[1-9]); \
  32. $(MAKE) uninstall-man \
  33. mandir="$(mandir)/$$lang" \
  34. man_MANS="" \
  35. dist_man_MANS="$$files"; \
  36. fi \
  37. done
  38. dist-hook: man.stamp
  39. cp $(srcdir)/man.stamp $(distdir)/
  40. for lang in $(LINGUAS); do \
  41. cp $(srcdir)/po/$$lang.po $(distdir)/po; \
  42. cp $(srcdir)/po/$$lang.add $(distdir)/po; \
  43. $(mkdir_p) $(distdir)/$$lang; \
  44. cp -r $(srcdir)/$$lang $(distdir)/; \
  45. done
  46. dist_man_MANS = \
  47. 822-date.1 \
  48. cleanup-info.8 \
  49. deb-control.5 \
  50. deb-version.5 \
  51. deb-shlibs.5 \
  52. deb-substvars.5 \
  53. deb-symbols.5 \
  54. deb-old.5 \
  55. deb-override.5 \
  56. deb.5 \
  57. dpkg-architecture.1 \
  58. dpkg-buildpackage.1 \
  59. dpkg-checkbuilddeps.1 \
  60. dpkg-deb.1 \
  61. dpkg-distaddfile.1 \
  62. dpkg-divert.8 \
  63. dpkg-genchanges.1 \
  64. dpkg-gencontrol.1 \
  65. dpkg-gensymbols.1 \
  66. dpkg-name.1 \
  67. dpkg-parsechangelog.1 \
  68. dpkg-query.1 \
  69. dpkg-scanpackages.1 \
  70. dpkg-scansources.1 \
  71. dpkg-shlibdeps.1 \
  72. dpkg-source.1 \
  73. dpkg-split.1 \
  74. dpkg-statoverride.8 \
  75. dpkg.1 \
  76. dpkg.cfg.5 \
  77. dselect.1 \
  78. dselect.cfg.5 \
  79. install-info.8 \
  80. start-stop-daemon.8 \
  81. update-alternatives.8
  82. EXTRA_DIST = \
  83. po/po4a.cfg \
  84. po/dpkg-man.pot
  85. .PHONY: update-po