All pastes #796117 Raw Edit

rules

public text v1 · immutable
#796117 ·published 2007-11-24 19:56 UTC
rendered paste body
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PACKAGE_NAME=penguintv
MODULE_NAME=penguintv

PYVERS=$(shell pyversions -vr)

#include /usr/share/cdbs/1/rules/simple-patchsys.mk

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

build: build-stamp
build-stamp: $(PYVERS:%=build-ext-%)
	touch $@
build-ext-%:
	dh_testdir
	python$* setup.py build

install: install-stamp
install-stamp: build-stamp $(PYVERS:%=install-ext-%)
install-ext-%:
	python$* setup.py install \
		--root $(CURDIR)/debian/${PACKAGE_NAME}
	dh_desktop
binary-indep:

binary-arch: build install
	dh_testdir -a
	dh_testroot -a
	dh_installchangelogs -a ChangeLog
	dh_installdocs -a
	dh_pycentral -a
	dh_strip -a
	dh_compress -a -X.py
	dh_fixperms -a
	dh_installdeb -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_md5sums -a
	dh_builddeb -a

binary: binary-indep binary-arch

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