d4ef58857951e1e532f446879a6b722d7fe70fb6
[openstack-build/cinder-build.git] / debian / rules
1 #!/usr/bin/make -f
2
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 %:
7         dh $@  --with python2
8
9 get-orig-source:
10         uscan --verbose --rename --destdir=../build-area
11
12 ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
13 override_dh_auto_test:
14         testr init && testr run
15 endif
16
17 override_dh_install:
18         dh_install --fail-missing -Xbin/cinder-all
19
20 override_dh_fixperms:
21         dh_fixperms -Xcinder_tgt.conf
22
23 override_dh_clean:
24         # temporary workaround for d2to1 wonkyness
25         dh_clean -Xsetup.cfg