Makefile.am 2.3 KB

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