~brendan-donegan/click/deb_control_columns

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
SUBDIRS = lib preload click conf debhelper init po schroot
if PACKAGEKIT
SUBDIRS += pk-plugin
endif

ACLOCAL_AMFLAGS = -I m4

all-local:
	set -e; for python in $(PYTHON_INTERPRETERS); do \
		$$python setup.py build; \
	done

check-local:
	set -e; for python in $(PYTHON_INTERPRETERS); do \
		$$python setup.py test; \
	done

# setuptools likes to leave some debris around, which confuses things.
install-exec-hook:
	find build -name \*.pyc -print0 | xargs -0r rm -f
	find build -name __pycache__ -print0 | xargs -0r rm -rf
	find build -name \*.egg-info -print0 | xargs -0r rm -rf
	set -e; for python in $(PYTHON_INTERPRETERS); do \
		$$python setup.py install $(PYTHON_INSTALL_FLAGS); \
	done

clean-local:
	rm -rf build *.egg-info .tox
	find -name \*.pyc -print0 | xargs -0r rm -f
	find -name __pycache__ -print0 | xargs -0r rm -rf