File: Makefile

package info (click to toggle)
kanjidraw 0.2.3-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,912 kB
  • sloc: python: 556; makefile: 35; sh: 22
file content (35 lines) | stat: -rw-r--r-- 656 bytes parent folder | download
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
SHELL   := /bin/bash
PYTHON  ?= python3
VERBOSE ?= --verbose

export PYTHONWARNINGS := default

.PHONY: all test clean cleanup install

all:

test:
	$(PYTHON) -m kanjidraw.gui $(VERBOSE) --doctest
	$(PYTHON) -m kanjidraw.lib $(VERBOSE) --doctest

clean: cleanup
	rm -fr kanjidraw.egg-info/

cleanup:
	find -name '*~' -delete -print
	rm -fr kanjidraw/__pycache__/
	rm -fr build/ dist/
	rm -fr .coverage htmlcov/

install:
	$(PYTHON) -mpip install -e .

.PHONY: _package _publish

_package:
	$(PYTHON) setup.py sdist bdist_wheel
	twine check dist/*

_publish: cleanup _package
	read -r -p "Are you sure? "; \
	[[ "$$REPLY" == [Yy]* ]] && twine upload dist/*