File: Makemodule.am

package info (click to toggle)
util-linux 2.41-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 95,208 kB
  • sloc: ansic: 179,016; sh: 22,689; yacc: 1,284; makefile: 528; xml: 422; python: 316; lex: 89; ruby: 75; csh: 37; exp: 19; sed: 16; perl: 15; sql: 9
file content (67 lines) | stat: -rw-r--r-- 1,616 bytes parent folder | download | duplicates (2)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67

POMAN_PO_FILES = $(wildcard po-man/*.po)
EXTRA_DIST += po-man/README.md \
	      po-man/po4a.cfg \
	      po-man/util-linux-man.pot \
	      $(POMAN_PO_FILES)

DISTCLEANFILES += po-man/util-linux-man.pot $(POMAN_PO_FILES)

if ENABLE_ASCIIDOC
if ENABLE_POMAN

PO_STAMPS = po4a-gen.stamp

CLEANFILES += $(PO_STAMPS)

asciidoc_poman_translate_cmd = $(abs_srcdir)/tools/poman-translate.sh \
	--progress \
	--srcdir '$(abs_srcdir)/po-man' \
	--destdir '$(abs_builddir)/po-man/translations' \
	--asciidoctor-load-path '$(abs_srcdir)/tools' \
	--docdir '$(docdir)' \
	--po4acfg '$(abs_srcdir)/po-man/po4a.cfg' \
	--util-linux-version '$(VERSION)'

asciidoc_poman_install_cmd = $(abs_srcdir)/tools/poman-install.sh \
	--mandir '$(DESTDIR)$(mandir)' \
	--mansrcdir '$(abs_builddir)/po-man/translations/man'

ADOCFILES = $(MANPAGES:=.adoc)

po4a-gen.stamp: $(POMAN_PO_FILES) $(ADOCFILES_COMMON) $(ADOCFILES)
	@$(asciidoc_poman_translate_cmd) $(ADOCFILES)
	@touch po4a-gen.stamp

gen-poman-dist:
	@echo "Updating po-man PO and POT files"
	@$(PO4A) --no-translations --force \
		 --srcdir '$(abs_srcdir)/po-man' \
		 --destdir '$(abs_builddir)/po-man' \
		 '$(abs_srcdir)/po-man/po4a.cfg'

gen-poman: $(PO_STAMPS)

install-data-hook-poman:
	@$(asciidoc_poman_install_cmd) --install
INSTALL_DATA_HOOKS += install-data-hook-poman


uninstall-hook-poman:
	@$(asciidoc_poman_install_cmd) --uninstall
UNINSTALL_HOOKS += uninstall-hook-poman


clean-local-hook-poman:
	@rm -rf $(top_builddir)/po-man/translations
CLEAN_LOCALS += clean-local-hook-poman


# !ENABLE_POMAN
else
gen-poman:
gen-poman-dist:
endif

# ENABLE_ASCIIDOC
endif