diff options
author | Thomas Voss <thomas.voss@humanwave.nl> | 2025-09-05 15:46:26 +0200 |
---|---|---|
committer | Thomas Voss <thomas.voss@humanwave.nl> | 2025-09-05 15:46:26 +0200 |
commit | df78b72fe58251bb31c8bc5ab34460e44220383d (patch) | |
tree | e2fa5436c73d9f11ccf6e5cdce3450e3472c2a1f /Makefile |
Genesis commit
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e5e7cb4 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +CC = cc +CFLAGS = -Wall -Wextra -Wpedantic -std=c23 \ + -I$$(brew --prefix gettext)/include \ + -L$$(brew --prefix gettext)/lib \ + -lintl + +all: tiktok + +tiktok: main.c + $(CC) $(CFLAGS) -o $@ $< + +extract: + xgettext --from-code=UTF-8 -k_ -o po/messages.pot main.c + find po -name '*.po' -exec msgmerge {} po/messages.pot -o {} \; + +translations: + find po -name '*.po' | while read -r file; do msgfmt "$$file" -o "$${file%po}mo"; done + +clean: + rm tiktok + find po -name '*.mo' -delete |