31 lines
653 B
Makefile
31 lines
653 B
Makefile
# Build package by default with all general tools and things
|
|
all:
|
|
make localization
|
|
make build
|
|
|
|
# Build minimal package only
|
|
build:
|
|
go build
|
|
|
|
# Build debug version with more logs
|
|
debug:
|
|
go build -tags=debug
|
|
|
|
# Format the source code
|
|
fmt:
|
|
go fmt
|
|
|
|
# Build localization files with separated untranslated strings
|
|
translation:
|
|
goi18n merge -format yaml \
|
|
-sourceLanguage en \
|
|
-outdir ./translations/ \
|
|
./translations/src/*/*
|
|
|
|
# Build localization files and merge untranslated strings
|
|
localization:
|
|
make translation
|
|
goi18n -format yaml \
|
|
-sourceLanguage en \
|
|
-outdir ./translations/ \
|
|
./translations/*.all.yaml ./translations/*.untranslated.yaml
|