~ntt-pf-lab/nova/monkey_patch_notification

« back to all changes in this revision

Viewing changes to vendor/python-gflags/debian/rules

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
3
# Sample debian/rules that uses debhelper.
 
4
# GNU copyright 1997 to 1999 by Joey Hess.
 
5
 
 
6
# Uncomment this to turn on verbose mode.
 
7
#export DH_VERBOSE=1
 
8
 
 
9
PYTHON  := /usr/bin/python
 
10
#PYVER   := $(shell $(PYTHON) -c 'import sys; print sys.version[:3]')
 
11
PYVERS  = $(shell pyversions -vr)
 
12
 
 
13
build: $(PYVERS:%=build-python%)
 
14
        touch $@
 
15
 
 
16
build-python%:
 
17
        dh_testdir
 
18
        python$* setup.py build
 
19
        touch $@
 
20
 
 
21
clean:
 
22
        dh_testdir
 
23
        dh_testroot
 
24
        rm -f build-python*
 
25
        rm -rf build
 
26
        -find . -name '*.py[co]' | xargs rm -f
 
27
        dh_clean
 
28
 
 
29
install: build $(PYVERS:%=install-python%)
 
30
 
 
31
install-python%:
 
32
        dh_testdir
 
33
        dh_testroot
 
34
        dh_clean -k
 
35
        dh_installdirs
 
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
 
42
 
 
43
# Build architecture-independent files here.
 
44
binary-indep: build install
 
45
        dh_testdir
 
46
        dh_testroot
 
47
        dh_installchangelogs -k ChangeLog
 
48
        dh_installdocs
 
49
        dh_pycentral
 
50
        dh_compress -X.py
 
51
        dh_fixperms
 
52
        dh_installdeb
 
53
        dh_gencontrol
 
54
        dh_md5sums
 
55
        dh_builddeb
 
56
 
 
57
# Build architecture-dependent files here.
 
58
binary-arch: build install
 
59
# We have nothing to do by default.
 
60
 
 
61
binary: binary-indep binary-arch
 
62
.PHONY: build clean binary-indep binary-arch binary install configure