summaryrefslogtreecommitdiffstats
path: root/gettext-runtime/man
diff options
context:
space:
mode:
authorDaiki Ueno <ueno@gnu.org>2014-04-25 12:31:11 +0900
committerDaiki Ueno <ueno@gnu.org>2014-04-25 12:42:12 +0900
commit41a2f19194e11830064583a7d7b5f86743b941ad (patch)
tree79c21e3caba7843ccd4318b964c6f3064ce8c2a1 /gettext-runtime/man
parent7880eb189254a73b2ad5aa836768b09d529311fa (diff)
downloadexternal_gettext-41a2f19194e11830064583a7d7b5f86743b941ad.zip
external_gettext-41a2f19194e11830064583a7d7b5f86743b941ad.tar.gz
external_gettext-41a2f19194e11830064583a7d7b5f86743b941ad.tar.bz2
build: Turn update-po.sh into a Makefile rule
Suggested by Andreas Stricker in: <https://lists.gnu.org/archive/html/bug-gettext/2014-04/msg00020.html>. * configure.ac (maintainer-update-po): New recursive rule. * update-po.sh: Remove. * autogen.sh: Don't mention update-po.sh. * Makefile.am (maintainer-update-po-local): New rule. * gettext-runtime/Makefile.am (maintainer-update-po): New rule. * gettext-runtime/man/Makefile.am (update-man1): Remove; add explicit dependency on the executable to each .1 rule. * gettext-tools/man/Makefile.am (update-man1): Remove; add explicit dependency on the executable to each .1 rule.
Diffstat (limited to 'gettext-runtime/man')
-rw-r--r--gettext-runtime/man/Makefile.am17
1 files changed, 5 insertions, 12 deletions
diff --git a/gettext-runtime/man/Makefile.am b/gettext-runtime/man/Makefile.am
index 46e0199..b91896f 100644
--- a/gettext-runtime/man/Makefile.am
+++ b/gettext-runtime/man/Makefile.am
@@ -60,6 +60,8 @@ HELP2MAN = $(PERL) -w -- $(srcdir)/help2man
# groff 1.17 or newer.
MAN2HTML = groff -mandoc -Thtml
+UPDATEMODE =
+
# We distribute both the man pages and their HTML equivalent.
# The user can generate the parts, via
@@ -84,25 +86,16 @@ ngettext.1: ngettext.1.in Makefile
sed -e 's|@''localedir''@|$(localedir)|g' < `if test -f ngettext.1.in; then echo .; else echo $(srcdir); fi`/ngettext.1.in > t-$@
mv t-$@ $@
-gettext.1.in: gettext.x
+gettext.1.in: gettext.x ../src/gettext$(EXEEXT)
IN_HELP2MAN=1 $(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/gettext$(EXEEXT) $(srcdir)/gettext.x gettext.1.in
-ngettext.1.in: ngettext.x
+ngettext.1.in: ngettext.x ../src/ngettext$(EXEEXT)
IN_HELP2MAN=1 $(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/ngettext$(EXEEXT) $(srcdir)/ngettext.x ngettext.1.in
-envsubst.1: envsubst.x
+envsubst.1: envsubst.x ../src/envsubst$(EXEEXT)
$(SHELL) x-to-1 $(UPDATEMODE) "$(PERL)" "$(HELP2MAN)" ../src/envsubst$(EXEEXT) $(srcdir)/envsubst.x envsubst.1
$(man_MAN1IN) $(man_MAN1OTHER): help2man $(top_srcdir)/../.version
-# Update them also during "make dist", in order to propagate added command
-# line options that were added, even if .version didn't change.
-UPDATEMODE =
-update-man1:
- $(MAKE) $(man_MAN1IN) $(man_MAN1OTHER) UPDATEMODE=--update
- $(MAKE)
-# Hidden from automake, but really activated. Works around an automake-1.5 bug.
-#distdir: update-man1
-
gettext.3: gettext.3.in $(top_srcdir)/../.version
sed -e 's/@''VERSION''@/@VERSION@/g' < $(srcdir)/gettext.3.in > t-$@
mv t-$@ $@