3
# Sample debian/rules that uses debhelper.
4
# GNU copyright 1997 to 1999 by Joey Hess.
6
# Uncomment this to turn on verbose mode.
9
PYTHON := /usr/bin/python
10
#PYVER := $(shell $(PYTHON) -c 'import sys; print sys.version[:3]')
11
PYVERS = $(shell pyversions -vr)
13
build: $(PYVERS:%=build-python%)
18
python$* setup.py build
26
-find . -name '*.py[co]' | xargs rm -f
29
install: build $(PYVERS:%=install-python%)
36
python$* setup.py install --root=$(CURDIR)/debian/python-gflags
37
# Scripts should not have a .py on the end of them
38
mv $(CURDIR)/debian/python-gflags/usr/bin/gflags2man.py $(CURDIR)/debian/python-gflags/usr/bin/gflags2man
39
# Generate a man file for gflags2man
40
mkdir -p $(CURDIR)/debian/python-gflags/usr/share/man/man1
41
PYTHONPATH=$(CURDIR)/debian/.. python$* gflags2man.py --dest_dir $(CURDIR)/debian/python-gflags/usr/share/man/man1 $(CURDIR)/debian/python-gflags/usr/bin/gflags2man
43
# Build architecture-independent files here.
44
binary-indep: build install
47
dh_installchangelogs -k ChangeLog
57
# Build architecture-dependent files here.
58
binary-arch: build install
59
# We have nothing to do by default.
61
binary: binary-indep binary-arch
62
.PHONY: build clean binary-indep binary-arch binary install configure