Files

74 lines
1.7 KiB
Makefile
Raw Permalink Normal View History

SHELL := bash
2020-09-24 17:25:11 +02:00
NAME := settings
# Where to write the files generated by this makefile.
OUTPUT_DIR = ./pkg/service/v0/l10n
TEMPLATE_FILE = ./pkg/service/v0/l10n/settings.pot
2022-04-13 10:35:04 +02:00
include ../../.make/recursion.mk
2021-02-24 15:07:39 +01:00
############ tooling ############
2022-05-13 11:16:40 +00:00
ifneq (, $(shell command -v go 2> /dev/null)) # suppress `command not found warnings` for non go targets in CI
2022-04-13 10:35:04 +02:00
include ../../.bingo/Variables.mk
2021-03-09 08:40:35 +01:00
endif
2021-02-24 15:07:39 +01:00
############ go tooling ############
2022-04-13 10:35:04 +02:00
include ../../.make/go.mk
2021-02-24 15:07:39 +01:00
2021-03-09 08:40:35 +01:00
2021-02-24 15:07:39 +01:00
############ release ############
2022-04-13 10:35:04 +02:00
include ../../.make/release.mk
############ docs generate ############
2022-04-13 10:35:04 +02:00
include ../../.make/docs.mk
.PHONY: docs-generate
docs-generate: config-docs-generate \
grpc-docs-generate
############ generate ############
2022-04-13 10:35:04 +02:00
include ../../.make/generate.mk
.PHONY: ci-go-generate
ci-go-generate: $(MOCKERY) protobuf # CI runs ci-node-generate automatically before this target
$(MOCKERY)
.PHONY: ci-node-generate
2023-01-26 21:52:45 +01:00
ci-node-generate:
############ protobuf ############
2022-04-13 10:35:04 +02:00
include ../../.make/protobuf.mk
.PHONY: protobuf
2023-02-16 13:54:41 +01:00
protobuf: buf-generate $(PROTOC_GO_INJECT_TAG)
cd ../../protogen/gen/ && $(PROTOC_GO_INJECT_TAG) -input="ocis/messages/settings/v0/*.pb.go"
2022-04-01 17:11:37 +02:00
############ licenses ############
.PHONY: ci-node-check-licenses
2023-01-26 21:52:45 +01:00
ci-node-check-licenses:
2022-04-01 17:11:37 +02:00
.PHONY: ci-node-save-licenses
2023-01-26 21:52:45 +01:00
ci-node-save-licenses:
############ translations ########
.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)/settings.pot \
--keyword=l10n.Template --add-comments -s \
pkg/store/defaults/templates.go
2025-05-22 18:19:20 +02:00
cat $(OUTPUT_DIR)/settings.pot
.PHONY: l10n-write
l10n-write:
.PHONY: l10n-clean
l10n-clean:
rm -f $(TEMPLATE_FILE);