File: rules

package info (click to toggle)
deejayd 0.9.0-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,596 kB
  • ctags: 2,514
  • sloc: python: 11,904; xml: 594; sh: 338; makefile: 42
file content (64 lines) | stat: -rwxr-xr-x 1,554 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
61
62
63
64
#!/usr/bin/make -f
# -*- makefile -*-

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

# This has to be exported to make some magic below work.
export DH_OPTIONS

install:
	dh_clean -k -i
	dh_clean -k -s
	python setup.py install --no-compile\
		--root $(CURDIR)/debian/tmp --install-layout=deb

	# Fixing example conffile location
	mkdir -p $(CURDIR)/debian/tmp/etc/X11/Xsession.d
	cp -a $(CURDIR)/deejayd/ui/defaults.conf\
	      $(CURDIR)/debian/tmp/etc/deejayd.conf
	cp -a $(CURDIR)/debian/deejayd.xinitrc\
	      $(CURDIR)/debian/tmp/etc/deejayd.xinitrc
	cp -a $(CURDIR)/debian/50deejayd_steal-session\
	      $(CURDIR)/debian/tmp/etc/X11/Xsession.d

	# Removing jquery embedded copy, see debian/deejayd-webui.links
	rm $(CURDIR)/debian/tmp/usr/share/deejayd/htdocs/js/lib/jquery.js

	dh_install --sourcedir=$(CURDIR)/debian/tmp
	dh_installdirs

clean:
	dh_testdir
	dh_testroot

	python setup.py clean --all
	find $(CURDIR) -name '*pyc' -exec rm -f {} \;

	dh_clean

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_pycentral -Ndeejayd-webui-extension
	dh_installlogrotate
	# Inspired by mpd packaging, so that ALSA scripts can run first
	dh_installinit -u"defaults 30 15"
	# Inspired by gdm packaging
	dh_installinit --name=deejayd-xserver -u"defaults 30 01"
	dh_installman
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install

binary: binary-arch binary-indep

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