File: rules

package info (click to toggle)
jinja 0.9-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 412 kB
  • ctags: 485
  • sloc: python: 2,551; makefile: 40
file content (52 lines) | stat: -rwxr-xr-x 1,270 bytes parent folder | download
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/usr/bin/make -f

#export DH_VERBOSE=1

DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog \
	| grep ^Version: | cut -d ' ' -f 2 | cut -d '-' -f 1)

PYVERS=$(shell pyversions -vr debian/control)

clean:
	dh_testdir
	dh_testroot
	rm -f build-*
	rm -rf dist build
	find . -name *\.py[co] -exec rm {} \;
	dh_clean

build: build-stamp
build-stamp: $(PYVERS:%=build-python%)
	touch $@
build-python%:
	python$* setup.py build
	touch $@
install: build $(PYVERS:%=install-python%)
install-python%:
	python$* setup.py install \
		--single-version-externally-managed \
		--root $(CURDIR)/debian/python-jinja
	# share Egg dir
	mv debian/python-jinja/usr/lib/python$*/site-packages/Jinja-${DEB_UPSTREAM_VERSION}-py$*.egg-info \
	   debian/python-jinja/usr/lib/python$*/site-packages/Jinja-${DEB_UPSTREAM_VERSION}.egg-info

binary-indep: build install
	dh_testdir -i
	dh_testroot -i
	dh_installchangelogs -i
	dh_installdocs -i
	mv debian/python-jinja/usr/share/doc/python-jinja/build \
	   debian/python-jinja/usr/share/doc/python-jinja/docs
	dh_pycentral -i
	dh_compress -i -X.py
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

binary-arch:

binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install configure