~adiroiban/pocket-lint/line-regex

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
PYTHON = python3
VERSION = $(shell $(PYTHON) setup.py -V)

build:
	$(PYTHON) setup.py build

test:
	$(PYTHON) test.py

check: build
	$(PYTHON) -m unittest discover pocketlint

changelog:
	@if test -d .bzr/branch; then \
	    echo "<Generated by bzr log --log-format=gnu>" > ChangeLog; \
	    echo "" >> ChangeLog; \
		BZR_PLUGIN_PATH=bzr_plugins bzr log --log-format=gnu >> ChangeLog; \
	fi

manifest: changelog
	$(PYTHON) setup.py sdist --manifest-only

dist: build manifest
	$(PYTHON) setup.py signed_sdist

install:
	$(PYTHON) setup.py install

clean:
	$(PYTHON) setup.py clean
	rm -r build/

distclean: clean
	rm -r dist/ MANIFEST ChangeLog

.PHONY: build check changelog manifest dist clean distclean