-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 1001 Bytes
/
Makefile
File metadata and controls
35 lines (26 loc) · 1001 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
EUPHORIE_POT = src/dsetool/policy/locales/euphorie.pot
EUPHORIE_PO_FILES = $(wildcard src/dsetool/policy/locales/*/LC_MESSAGES/euphorie.po)
MO_FILES = $(EUPHORIE_PO_FILES:.po=.mo) $(PLONE_PO_FILES:.po=.mo)
TWINE_REPOSITORY ?= pypi
TARGETS = $(MO_FILES)
SHELL=/bin/bash
all: ${TARGETS}
clean::
-rm ${TARGETS}
pot:
i18ndude rebuild-pot --pot $(EUPHORIE_POT) src/dsetool/policy --create euphorie
$(MAKE) $(MFLAGS) $(EUPHORIE_PO_FILES)
$(EUPHORIE_PO_FILES): src/dsetool/policy/locales/euphorie.pot
i18ndude sync --pot src/dsetool/policy/locales/euphorie.pot src/dsetool/policy/locales/*/LC_MESSAGES/euphorie.po
.po.mo:
msgfmt -c --statistics -o $@ $<
.PHONY: all clean pot
.SUFFIXES: .po .mo
.PHONY: release
release:
@echo "Releasing to $(TWINE_REPOSITORY)"
@echo 'run `make release TWINE_REPOSITORY=<name>` to override'
TWINE_REPOSITORY=$(TWINE_REPOSITORY) uvx \
--from zest-releaser \
--with zest-releaser'[recommended]' \
--with zestreleaser-towncrier fullrelease