File: Makefile

package info (click to toggle)
btest 0.72-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,208 kB
  • sloc: python: 2,187; sh: 547; makefile: 165; xml: 12; awk: 1
file content (30 lines) | stat: -rw-r--r-- 627 bytes parent folder | download | duplicates (2)
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
VERSION=`cat VERSION`

.PHONY: all
all:

.PHONY: dist
dist:
	rm -rf build/*.tar.gz
	python3 setup.py sdist -d build
	@printf "Package: "; echo build/*.tar.gz

.PHONY: upload
upload: twine-check dist
	twine upload -u zeek build/btest-$(VERSION).tar.gz

.PHONY: test
test:
	@(cd testing && make)

.PHONY: twine-check
twine-check:
	@type twine > /dev/null 2>&1 || \
		{ \
		echo "Uploading to PyPi requires 'twine' and it's not found in PATH."; \
		echo "Install it and/or make sure it is in PATH."; \
		echo "E.g. you could use the following command to install it:"; \
		echo "\tpip3 install twine"; \
		echo ; \
		exit 1; \
		}