diff options
| author | EuAndreh <eu@euandre.org> | 2025-05-14 20:16:19 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2025-05-14 20:18:50 -0300 |
| commit | e1f540f460c66d2ed1823e1705e1e4c955e145e0 (patch) | |
| tree | 60b4fd5164b3b780a1feaa252a1519bb75df527d /Makefile | |
| parent | po/: Cleanup garbage generated headers (diff) | |
| download | gotext-e1f540f460c66d2ed1823e1705e1e4c955e145e0.tar.gz gotext-e1f540f460c66d2ed1823e1705e1e4c955e145e0.tar.xz | |
doc/: No longer commit into the repository the generated files
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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 |
