Makefile.am 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. ## Process this file with automake to produce Makefile.in
  2. PO4A_V = $(PO4A_V_$(V))
  3. PO4A_V_ = $(PO4A_V_$(AM_DEFAULT_VERBOSITY))
  4. PO4A_V_0 = @echo " PO4A $@";
  5. PO4A_RM_V = $(PO4A_RM_V_$(V))
  6. PO4A_RM_V_ = $(PO4A_RM_V_$(AM_DEFAULT_VERBOSITY))
  7. PO4A_RM_V_0 = @echo " PO4ARM $@";
  8. all-local: all-local-@USE_PO4A@
  9. all-local-no:
  10. all-local-yes: man.stamp
  11. PO4A_COMMON_OPTS = --previous --variable builddir=$(CURDIR)
  12. PO4A_BUILD_OPTS = $(PO4A_COMMON_OPTS) --no-backups
  13. PO4A_CLEAN_OPTS = $(PO4A_COMMON_OPTS) --rm-backups --rm-translations
  14. # FIXME: Use a stamp file until po4a supports them internally.
  15. man.stamp:
  16. $(PO4A_V) cd $(srcdir) && \
  17. $(PO4A) $(PO4A_BUILD_OPTS) po/po4a.cfg
  18. $(AM_V_at) touch $@
  19. clean-local: clean-local-@USE_PO4A@
  20. clean-local-no:
  21. clean-local-yes:
  22. $(PO4A_RM_V) cd $(srcdir) && \
  23. $(PO4A) $(PO4A_CLEAN_OPTS) po/po4a.cfg
  24. $(AM_V_at) rm -f man.stamp
  25. update-po:
  26. $(PO4A_V) cd $(srcdir) && \
  27. $(PO4A) $(PO4A_BUILD_OPTS) --force po/po4a.cfg
  28. # Extract the list of languages from the po4a config file.
  29. LINGUAS_DIST = `sed -ne 's/^.*\[po4a_langs\] \(.*\)$$/\1/p' $(srcdir)/po/po4a.cfg`
  30. # If the user has not defined it let's use the default.
  31. LINGUAS ?= $(LINGUAS_DIST)
  32. install-data-local: install-data-local-@USE_PO4A@
  33. install-data-local-no:
  34. install-data-local-yes:
  35. for lang in $(LINGUAS); do \
  36. files=""; \
  37. for trans in $(dist_man_MANS); do \
  38. if [ -f $(srcdir)/$$lang/$$trans ]; then \
  39. files="$$files $(srcdir)/$$lang/$$trans"; \
  40. fi; \
  41. done; \
  42. $(MAKE) install-man \
  43. mandir="$(mandir)/$$lang" \
  44. man_MANS="" \
  45. dist_man_MANS="$$files"; \
  46. done
  47. uninstall-local: uninstall-local-@USE_PO4A@
  48. uninstall-local-no:
  49. uninstall-local-yes:
  50. for lang in $(LINGUAS); do \
  51. files=""; \
  52. for trans in $(dist_man_MANS); do \
  53. if [ -f $(srcdir)/$$lang/$$trans ]; then \
  54. files="$$files $(srcdir)/$$lang/$$trans"; \
  55. fi; \
  56. done; \
  57. $(MAKE) uninstall-man \
  58. mandir="$(mandir)/$$lang" \
  59. man_MANS="" \
  60. dist_man_MANS="$$files"; \
  61. done
  62. dist-hook: man.stamp
  63. cp $(srcdir)/man.stamp $(distdir)/
  64. for lang in $(LINGUAS_DIST); do \
  65. cp $(srcdir)/po/$$lang.po $(distdir)/po; \
  66. cp $(srcdir)/po/$$lang.add $(distdir)/po; \
  67. $(mkdir_p) $(distdir)/$$lang; \
  68. cp -r $(srcdir)/$$lang $(distdir)/; \
  69. done
  70. dist_man_MANS = \
  71. deb-control.5 \
  72. deb-version.5 \
  73. deb-shlibs.5 \
  74. deb-split.5 \
  75. deb-substvars.5 \
  76. deb-symbols.5 \
  77. deb-triggers.5 \
  78. deb-old.5 \
  79. deb-override.5 \
  80. deb-extra-override.5 \
  81. deb.5 \
  82. dpkg-architecture.1 \
  83. dpkg-buildpackage.1 \
  84. dpkg-checkbuilddeps.1 \
  85. dpkg-deb.1 \
  86. dpkg-distaddfile.1 \
  87. dpkg-divert.8 \
  88. dpkg-genchanges.1 \
  89. dpkg-gencontrol.1 \
  90. dpkg-gensymbols.1 \
  91. dpkg-name.1 \
  92. dpkg-parsechangelog.1 \
  93. dpkg-query.1 \
  94. dpkg-scanpackages.1 \
  95. dpkg-scansources.1 \
  96. dpkg-shlibdeps.1 \
  97. dpkg-source.1 \
  98. dpkg-split.1 \
  99. dpkg-statoverride.8 \
  100. dpkg-trigger.1 \
  101. dpkg-vendor.1 \
  102. dpkg.1 \
  103. dpkg.cfg.5
  104. if WITH_DSELECT
  105. dist_man_MANS += \
  106. dselect.1 \
  107. dselect.cfg.5
  108. endif
  109. if WITH_START_STOP_DAEMON
  110. dist_man_MANS += \
  111. start-stop-daemon.8
  112. endif
  113. if WITH_UPDATE_ALTERNATIVES
  114. dist_man_MANS += \
  115. update-alternatives.8
  116. endif
  117. EXTRA_DIST = \
  118. po/ChangeLog.old \
  119. po/po4a.cfg \
  120. po/dpkg-man.pot
  121. .PHONY: update-po