File: rules

package info (click to toggle)
drobo-utils 0.6.1%2Brepack-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 1,000 kB
  • ctags: 172
  • sloc: python: 1,705; sh: 229; makefile: 65
file content (60 lines) | stat: -rwxr-xr-x 1,358 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PKGNAME := drobo-utils

build: build-stamp

build-stamp:
	dh_testdir
	python setup.py build
	touch $@

clean:
	dh_testdir
	dh_testroot
	python setup.py clean --all
	[ ! -d build ] || rm -rf build
	find . -name "*\.pyc" -delete
	dh_clean *-stamp

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	make doc
	python setup.py install_lib -d $(CURDIR)/debian/$(PKGNAME)/usr/lib/python2.7/dist-packages
	find $(CURDIR)/debian/$(PKGNAME) -name "*\.pyc" -delete
	#python setup.py install_data -d $(CURDIR)/debian/$(PKGNAME)/usr/share/$(PKGNAME)
	cp Drobo-Front-0000.gif $(CURDIR)/debian/$(PKGNAME)/usr/share/pixmaps/
	python setup.py install_scripts -d $(CURDIR)/debian/$(PKGNAME)/usr/sbin
	for s in $(CURDIR)/debian/$(PKGNAME)/usr/sbin/*; do \
	    sed -i '1s,#!.*python.*,#!/usr/bin/python,' $$s; \
	done

binary-arch:

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs CHANGES.txt
	dh_installdocs
	dh_python2
	dh_installman
	dh_compress 		-X.py
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-arch binary-indep

get-orig-source:
	uscan --verbose --rename --repack --force-download

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