Moved man-po pot file creation into Makefile

The pot files for man-po are part of the extra_dist target so are
built at dist time. These used to be created as part of the dist-hook.
However it is better to control their builds in the Makefile so they
are conditionally built. It also means distcheck doesn't complain when
they are added to the CLEANFILES.
This commit is contained in:
Craig Small 2014-06-25 23:11:15 +10:00
parent f7b84f45c7
commit 889ad23842
4 changed files with 26 additions and 13316 deletions

View File

@ -54,7 +54,8 @@ EXTRA_DIST = \
misc/git-version-gen \ misc/git-version-gen \
Documentation/CodingStyle \ Documentation/CodingStyle \
Documentation/TODO \ Documentation/TODO \
sysctl.conf sysctl.conf \
$(DIST_MAN_POTS)
if BUILD_PIDOF if BUILD_PIDOF
usrbin_exec_PROGRAMS += pidof usrbin_exec_PROGRAMS += pidof
@ -122,19 +123,37 @@ dist_procpsng_DATA = \
BUILT_SOURCES = $(top_srcdir)/.version BUILT_SOURCES = $(top_srcdir)/.version
clean-local:
-rm man-po/template-man-ps.pot
-rm man-po/template-man-top.pot
-rm man-po/template-man.pot
$(top_srcdir)/.version: $(top_srcdir)/.version:
touch $(top_srcdir)/.version touch $(top_srcdir)/.version
echo $(VERSION) > $@-t && mv $@-t $@ echo $(VERSION) > $@-t && mv $@-t $@
dist-hook: dist-hook:
echo $(VERSION) > $(distdir)/.tarball-version echo $(VERSION) > $(distdir)/.tarball-version
$(srcdir)/create-man-pot.sh # $(srcdir)/create-man-pot.sh
$(srcdir)/translate-man.sh $(srcdir)/translate-man.sh
MAN_PS_POT = man-po/template-man-ps.pot
MAN_PS_POT_FILES = $(srcdir)/ps/ps.1
MAN_TOP_POT = man-po/template-man-top.pot
MAN_TOP_POT_FILES = $(srcdir)/top/top.1
MAN_POT = man-po/template-man.pot
MAN_POT_FILES = $(srcdir)/free.1 $(srcdir)/kill.1 $(srcdir)/pgrep.1 \
$(srcdir)/pidof.1 $(srcdir)/pkill.1 $(srcdir)/pmap.1 \
$(srcdir)/pwdx.1 $(srcdir)/skill.1 $(srcdir)/slabtop.1 \
$(srcdir)/snice.1 $(srcdir)/sysctl.8 $(srcdir)/uptime.1 \
$(srcdir)/sysctl.conf.5 $(srcdir)/tload.1 \
$(srcdir)/vmstat.8 $(srcdir)/w.1 $(srcdir)/watch.1
DIST_MAN_POTS = $(MAN_PS_POT) $(MAN_TOP_POT) $(MAN_POT)
CLEANFILES = $(DIST_MAN_POTS)
$(MAN_PS_POT): $(MAN_PS_POT_FILES)
po4a-updatepo -f man -m $< -p $@
$(MAN_TOP_POT): $(MAN_TOP_POT_FILES)
po4a-updatepo -f man -m $< -p $@
$(MAN_POT): $(MAN_POT_FILES)
po4a-updatepo -f man -m $< -p $@
get-trans: get-trans:
echo "Getting the latest translations from translationproject.org..." echo "Getting the latest translations from translationproject.org..."
rsync -Lrtvz translationproject.org::tp/latest/procps-ng/ po rsync -Lrtvz translationproject.org::tp/latest/procps-ng/ po

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff