mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-23 22:29:59 -05:00
30 lines
771 B
Makefile
30 lines
771 B
Makefile
SHELL := bash
|
|
NAME := notifications
|
|
OUTPUT_DIR = ./pkg/email/l10n
|
|
TEMPLATE_FILE = ./pkg/email/l10n/notifications.pot
|
|
|
|
ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI
|
|
include ../../.bingo/Variables.mk
|
|
endif
|
|
|
|
include ../../.make/default.mk
|
|
include ../../.make/go.mk
|
|
include ../../.make/release.mk
|
|
include ../../.make/docs.mk
|
|
|
|
.PHONY: l10n-pull
|
|
l10n-pull:
|
|
cd $(OUTPUT_DIR) && tx pull --all --force --skip --minimum-perc=75
|
|
|
|
.PHONY: l10n-push
|
|
l10n-push:
|
|
cd $(OUTPUT_DIR) && tx push -s --skip
|
|
|
|
.PHONY: l10n-read
|
|
l10n-read: $(GO_XGETTEXT)
|
|
$(GO_XGETTEXT) -o $(OUTPUT_DIR)/notifications.pot --keyword=l10n.Template --add-comments -s pkg/email/templates.go
|
|
|
|
.PHONY: l10n-clean
|
|
l10n-clean:
|
|
rm -f $(TEMPLATE_FILE);
|