This repository has been archived by the owner on Dec 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (38 loc) · 1.67 KB
/
Makefile
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
help:
@echo "MAKE TARGETS"
@echo "help -- this text"
@echo "clean -- remove generated files"
@echo "docs -- build Sphinx docs"
@echo "ext -- build C extensions"
@echo "xlate-export -- update pot and make tar to export to LP translators"
@echo "xlate-import -- process LP tranlator's export file into duplicity"
clean:
for i in '.tox' '_build' 'build' 'dist' 'apsw' 'work' 'megatestresults' '.eggs' '*.egg-info' \
'__pycache__' '*.pyc' '*.pyo' '*~' '*.o' '*.so' '*.pyd' '*.gcov' '*.gcda' \
'*.gcno' '*.orig' '*.tmp' 'testdb*' 'testextension.sqlext' \
'duplicity*.rst' 'testing*.rst'; do \
find . -name "$$i" | xargs -t -r rm -rf ; \
done
find . -name 'S.*' -type s -delete
docs:
sphinx-apidoc -o docs/ --separate --private . \
apsw duplicity/backends/pyrax_identity/* setup.* testing/overrides testing/manual
$(MAKE) -C docs html
ext:
./setup.py build_ext
xlate-export:
(cd po ; ./update-pot)
rm -rf /tmp/duplicity ~/Downloads/duplicity.tgz
mkdir -p /tmp/duplicity/duplicity
cp -p po/duplicity.pot /tmp/duplicity
cp -p po/*.po /tmp/duplicity/duplicity
(cd /tmp ; tar czf ~/Downloads/duplicity.tgz duplicity/duplicity.pot duplicity/duplicity/*.po)
echo "Reminder: upload ~/Downloads/duplicity.tgz to https://translations.launchpad.net/duplicity"
xlate-import:
echo "Reminder: download ~/Downloads/launchpad-export.tar.gz from https://translations.launchpad.net/duplicity"
rm -rf /tmp/duplicity /tmp/po
mkdir -p /tmp/duplicity/
(cd /tmp/duplicity ; tar xzf ~/Downloads/launchpad-export.tar.gz)
(cd /tmp/duplicity/po ; rename s/duplicity-//g *.po)
cp /tmp/duplicity/po/* po
.PHONY: clean docs ext help xlate-export xlate-import