Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: third_party/gsutil/third_party/python-gflags/debian/rules

Issue 1377933002: [catapult] - Copy Telemetry's gsutilz over to third_party. (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: Rename to gsutil. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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 --prefix =/usr
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 $(CURDI R)/debian/python-gflags/usr/share/man/man1 $(CURDIR)/debian/python-gflags/usr/bi n/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
OLDNEW
« no previous file with comments | « third_party/gsutil/third_party/python-gflags/debian/docs ('k') | third_party/gsutil/third_party/python-gflags/gflags.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698