From e1f540f460c66d2ed1823e1705e1e4c955e145e0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 14 May 2025 20:16:19 -0300 Subject: doc/: No longer commit into the repository the generated files --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8b7ade9..b5265f4 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,6 @@ DATE = 1970-01-01 VERSION = 0.1.0 NAME = gotext NAME_UC = $(NAME) -LANGUAGES = en ## Installation prefix. Defaults to "/usr". PREFIX = /usr BINDIR = $(PREFIX)/bin @@ -55,6 +54,7 @@ mains.bin = $(mains.go:.go=.bin) functional-tests/lib.a = $(functional-tests/lib.go:.go=.a) fuzz-targets/lib.a = $(fuzz-targets/lib.go:.go=.a) benchmarks/lib.a = $(benchmarks/lib.go:.go=.a) +manpages.N.adoc = $(manpages.en.N.adoc) $(manpages.XX.N.adoc) manpages.N = $(manpages.N.adoc:.adoc=) sources.mo = $(sources.po:.po=.mo) @@ -88,6 +88,7 @@ derived-assets = \ $(mains.a) \ $(mains.bin) \ $(NAME).bin \ + $(manpages.XX.N.adoc) \ $(manpages.N) \ $(sources.mo) \ locale/.gitignore \ @@ -139,6 +140,9 @@ src/meta.go: Makefile $(NAME).bin: src/main.bin ln -fs src/main.bin $@ +$(manpages.XX.N.adoc): po/doc/po4a.cfg + po4a --no-update --translate-only $@ po/doc/po4a.cfg + locale/.gitignore: po/tests/de.mo po/tests/es.mo instool $(@D) install mo $(sources.mo) echo '*' > $@ @@ -199,11 +203,11 @@ bench: $(benchmarks/main.bin-check) i18n-doc: po4a po/doc/po4a.cfg -i18n-tests: +i18n-code: gotext tests/functional/api-usage/gotext.go > po/tests/tests.pot po4a po/tests/po4a.cfg -i18n: i18n-doc i18n-tests +i18n: i18n-doc i18n-code -- cgit v1.2.3