Files

63 lines
1.4 KiB
Makefile
Raw Permalink Normal View History

SHELL := bash
2021-02-04 12:04:40 +01:00
NAME := graph
2024-03-26 12:58:41 +01:00
# Where to write the files generated by this makefile.
2024-08-01 17:01:38 +02:00
OUTPUT_DIR = ./pkg/l10n
TEMPLATE_FILE = ./pkg/l10n/graph.pot
2024-03-26 12:58:41 +01:00
2022-04-12 10:13:21 +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-12 10:13:21 +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-12 10:13:21 +02:00
include ../../.make/go.mk
2021-02-24 15:07:39 +01:00
############ release ############
2022-04-12 10:13:21 +02:00
include ../../.make/release.mk
2021-02-16 15:15:25 +01:00
############ docs generate ############
2022-04-12 10:13:21 +02:00
include ../../.make/docs.mk
2021-02-16 15:15:25 +01:00
.PHONY: docs-generate
2021-02-16 15:43:31 +01:00
docs-generate: config-docs-generate
2021-02-16 15:15:25 +01:00
############ generate ############
2022-04-12 10:13:21 +02:00
include ../../.make/generate.mk
2021-02-16 15:15:25 +01:00
.PHONY: ci-go-generate
2022-01-18 12:12:21 +00:00
ci-go-generate: $(MOCKERY) # CI runs ci-node-generate automatically before this target
$(MOCKERY)
2021-02-16 15:15:25 +01:00
.PHONY: ci-node-generate
2021-08-30 08:40:45 +02:00
ci-node-generate:
2022-04-01 17:11:37 +02:00
2024-03-26 12:58:41 +01:00
############ 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)/graph.pot --keyword=l10n.Template --add-comments -s pkg/service/v0/spacetemplates.go -s pkg/unifiedrole/roles.go
2024-03-26 12:58:41 +01:00
.PHONY: l10n-write
l10n-write:
.PHONY: l10n-clean
l10n-clean:
rm -f $(TEMPLATE_FILE);
2022-04-01 17:11:37 +02:00
############ licenses ############
.PHONY: ci-node-check-licenses
ci-node-check-licenses:
2022-04-01 17:11:37 +02:00
.PHONY: ci-node-save-licenses
ci-node-save-licenses: