aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..cc5723b
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,42 @@
1install:
2 poetry install
3
4build:
5 msgfmt music_sampler/locales/fr/LC_MESSAGES/music_sampler.po -o music_sampler/locales/fr/LC_MESSAGES/music_sampler.mo
6
7run: install build
8 poetry run python run.py
9
10BUNDLER ?= shiv
11bundle: install build
12 $(MAKE) bundle-$(BUNDLER)
13
14bundle-shiv:
15 if [ -f music_sampler.pyz ]; then rm music_sampler.pyz; fi
16 git add -f music_sampler/locales/fr/LC_MESSAGES/music_sampler.mo
17 poetry run shiv --output-file=music_sampler.pyz --site-packages=$(shell poetry env info -p)/lib/python3.9/site-packages --python="/usr/bin/env python3" --entry-point=music_sampler.app.main --no-deps ./.
18 git restore --staged music_sampler/locales/fr/LC_MESSAGES/music_sampler.mo
19
20bundle-pyinstaller:
21 poetry run pyinstaller music_sampler.spec
22
23PACKAGER ?= poetry
24
25package: install build
26 git describe --exact-match --tags
27 $(MAKE) package-$(PACKAGER)
28
29package-setup:
30 poetry run python setup.py sdist
31
32package-poetry:
33 poetry version $(shell git describe --exact-match --tags)
34 poetry build
35
36publish: package publish-$(PACKAGER)
37
38publish-setup:
39 poetry run python setup.py upload
40
41publish-poetry:
42 poetry publish