Makefile.am 1.86 KB
Newer Older
Tobias Quathamer's avatar
Tobias Quathamer committed
1 2
# Makefile for manpages-de
#
3
# Copyright © 2012-2017 Dr. Tobias Quathamer <toddy@debian.org>
Tobias Quathamer's avatar
Tobias Quathamer committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

18
SUBDIRS = po
19

20 21 22 23 24 25 26 27
# Download and update all upstream manpages
.PHONY: update-upstream
update-upstream:
	cd $(top_srcdir)/upstream ; \
	./update-distribution-manpages.sh ; \
	git add . ; \
	git commit -m "Update upstream manpages" || true

28 29 30 31 32 33 34 35 36 37 38 39
# Update all template files from upstream manpages.
# In order to re-use translations from 'primary' for
# the secondary translations before they get overwritten
# by changes to the primary templates, it's needed to
# update all translations (with 'make update-po') first,
# and afterwards update the templates, the common
# templates, and then the translations again.
.PHONY: update-translations
update-translations:
	cd $(top_srcdir)/po ; \
	$(MAKE) update-po ; \
	cd .. ; \
40 41 42 43
	cd $(top_srcdir)/templates ; \
	./update-templates.sh ; \
	./create-common-templates.sh ; \
	git add . ; \
44 45 46 47 48
	git commit -m "Update common templates" || true ; \
	cd .. ; \
	cd $(top_srcdir)/po ; \
	./update-common.sh ; \
	git add . ; \
49 50
	git commit -m "Update common messages from templates" || true ; \
	$(MAKE) update-po
51

52 53
# Export the current git tree into the tarball directory
dist-hook:
54
	git archive --format=tar v$(VERSION) | (cd $(distdir) && tar xf -)