File: Makefile

package info (click to toggle)
python-pynetstring 0.2-2~bpo10+1
  • links: PTS, VCS
  • area: main
  • in suites: buster-backports
  • size: 92 kB
  • sloc: python: 109; makefile: 15
file content (15 lines) | stat: -rw-r--r-- 354 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
TESTS=tests/tests.py
OK_TESTS=.ok_tests
SRCS=$(shell find . -name '*.py')
all: $(OK_TESTS)

$(OK_TESTS): $(SRCS) $(TESTS)
	python3 -m unittest $(TESTS) && touch $@

clean:
	rm -f $(OK_TESTS)
	rm -rf dist build pynetstring.egg-info pynetstring-*.tar.gz __pycache__

dist: $(OK_TESTS) setup.py $(SRCS)
	python3 setup.py sdist
	python3 setup.py bdist_wheel