File: Makefile

package info (click to toggle)
dh-python 3.20190308
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,184 kB
  • sloc: python: 4,171; makefile: 415; perl: 220; sh: 26
file content (17 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f
include ../common.mk

all: run check

run: clean
	dpkg-buildpackage -b -us -uc

check:
	test -f debian/pypy-foo/usr/lib/pypy/dist-packages/foo.py
	test ! -d debian/pypy-foo/usr/lib/pypy/site-packages
	test ! -d debian/pypy-foo/usr/lib/pypy/dist-packages/__pycache__
	grep -q pypycompile debian/pypy-foo/DEBIAN/postinst
	grep -q pypyclean debian/pypy-foo/DEBIAN/prerm

clean:
	./debian/rules clean