summaryrefslogtreecommitdiff
path: root/doc/C/Makefile.am
blob: 42b3cb14ea7b3ab32786b88d870170bb9946eedf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Process this file with automake to produce Makefile.in

dist_man8_MANS = \
	parted.8 \
	partprobe.8

.PHONY: updatepo
# Update the POT in srcdir
# Make sure the update does not only consist in a new POT-Creation-Date
# Don't do anything if $(srcdir) is read-only (i.e., for "make distcheck").
updatepo:
	cd $(srcdir); \
	test -w . || exit 0; \
	for name in $(dist_man8_MANS); do \
		echo $$name; \
		cp po/$$name.pot po/$$name.new.pot; \
		po4a-updatepo -f man -m $$name -p po/$$name.new.pot; \
		diff -I '^\"POT-Creation-Date: ' po/$$name.pot po/$$name.new.pot 2>&1 > /dev/null; \
		if [ $$? ]; then \
			mv po/$$name.new.pot po/$$name.pot; \
		else \
			rm -f po/$$name.new.pot; \
		fi; \
	done

dist-hook: updatepo