diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-09-06 15:55:28 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-09-06 15:55:28 +0200 |
commit | 342afc231aa72e2b8da364d534751d03c2c29eb0 (patch) | |
tree | 272ab68705a23e610de4126a0685939ae8e457f2 /Makefile | |
parent | 4c01e3f41d073a124fd8cc0ba193506722576163 (diff) |
Switch to CBS for builds
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 2cd2405..0000000 --- a/Makefile +++ /dev/null @@ -1,35 +0,0 @@ -CC = cc -CFLAGS = -Wall -Wextra -Wpedantic -std=c23 \ - -I$$(brew --prefix gettext)/include \ - -L$$(brew --prefix gettext)/lib \ - -lintl - -PREFIX = /usr/local -DPREFIX = $(DESTDIR)$(PREFIX) -PODIR = $(DPREFIX)/share/locale - -all: tiktok - -tiktok: main.c - $(CC) $(CFLAGS) -DPODIR='"$(PODIR)"' -o $@ $< - -extract: - xgettext --from-code=UTF-8 -k_ -o po/tiktok.pot main.c - find po -name '*.po' -exec msgmerge {} po/tiktok.pot -o {} \; - -translations: - find po -name '*.po' | \ - while read -r file; do msgfmt "$$file" -o "$${file%po}mo"; done - -install: - mkdir -p "$(DPREFIX)/bin" "$(DPREFIX)/share/man/man1" - find po -type d -maxdepth 2 -mindepth 2 | while read -r path; \ - do \ - mkdir -p "$(PODIR)/$${path#*/}"; \ - msgfmt "$$path/tiktok.po" -o "$(PODIR)/$${path#*/}/tiktok.mo"; \ - done - cp tiktok "$(DPREFIX)/bin" - -clean: - rm tiktok - find po -name '*.mo' -delete |