-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (45 loc) · 1.64 KB
/
Makefile
File metadata and controls
59 lines (45 loc) · 1.64 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
EUPHORIE_POT = src/euphorie/deployment/locales/euphorie.pot
EUPHORIE_PO_FILES = $(wildcard src/euphorie/deployment/locales/*/LC_MESSAGES/euphorie.po)
PLONE_PO_FILES = $(wildcard src/euphorie/deployment/locales/*/LC_MESSAGES/plone.po)
MO_FILES = $(EUPHORIE_PO_FILES:.po=.mo) $(PLONE_PO_FILES:.po=.mo)
TWINE_REPOSITORY ?= pypi
TARGETS = $(MO_FILES)
SHELL=/usr/bin/env bash
all: ${TARGETS}
clean::
-rm ${TARGETS}
bin/buildout:
python3.8 -m venv .
bin/pip install -r requirements.txt
bin/i18ndude bin/test bin/sphinx-build: bin/buildout buildout.cfg versions.cfg devel.cfg setup.py
bin/buildout -c devel.cfg -t 10
touch bin/i18ndude
touch bin/sphinx-build
touch bin/test
check:: bin/test ${MO_FILES}
bin/test -s euphorie
jenkins: bin/test bin/sphinx-build $(MO_FILES)
bin/test --xml -s euphorie
docs:: bin/sphinx-build
make -C docs html
clean::
rm -rf docs/.build
pot:
i18ndude rebuild-pot --exclude="generated prototype examples illustrations help" --pot $(EUPHORIE_POT) src/euphorie --create euphorie
$(MAKE) $(MFLAGS) $(EUPHORIE_PO_FILES)
$(EUPHORIE_PO_FILES): src/euphorie/deployment/locales/euphorie.pot
msgmerge --update -N --lang `echo $@ | awk -F"/" '{print ""$$5}'` $@ $<
.po.mo:
msgfmt -c --statistics -o $@ $<
.PHONY: all clean docs jenkins pot
.SUFFIXES:
.SUFFIXES: .po .mo .css .min.css
.PHONY: release
release:
@echo "Releasing to repository: $(TWINE_REPOSITORY)"
@echo "To release to a different repository, run \`make release TWINE_REPOSITORY=<repository>\`"
TWINE_REPOSITORY="$(TWINE_REPOSITORY)" uvx \
--from zest-releaser \
--with zest-releaser\[recommended\] \
--with zestreleaser-towncrier \
fullrelease