File: rules

package info (click to toggle)
mscore 0.9.2%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 15,740 kB
  • ctags: 8,260
  • sloc: cpp: 71,800; xml: 11,363; sh: 323; makefile: 156
file content (92 lines) | stat: -rwxr-xr-x 2,261 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#!/usr/bin/make -f
# -*- makefile -*-

unpatch:
	dpatch deapply-all
	rm -rf patch-stamp debian/patched
	
patch: patch-stamp

patch-stamp:
	dpatch apply-all
	dpatch cat-all >patch-stamp

configure: configure-stamp
configure-stamp: patch
	dh_testdir
	touch configure-stamp


build: build-stamp

build-stamp: configure-stamp 
	dh_testdir
	$(MAKE) PREFIX="/usr" release
	touch $@

clean: clean-patched unpatch
clean-patched:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp
	rm -f mscore/share/locale/mscore_*.qm
	rm -rf web
	$(MAKE) clean
	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs
	$(MAKE) DESTDIR=$(CURDIR)/debian/mscore install


# Build architecture-independent files here.
binary-indep: build install

# Build architecture-dependent files here.
binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs $(CURDIR)/mscore/ChangeLog
	dh_installdocs
	dh_install
	rm -r $(CURDIR)/debian/mscore/usr/share/mscore*
	cd $(CURDIR)/debian/mscore-common/usr/share && ln -s mscore-* mscore
	install -m0644 $(CURDIR)/debian/soundfont-required.update-notifier \
		$(CURDIR)/debian/mscore-common/usr/share/mscore
	mv $(CURDIR)/debian/mscore/usr/bin/mscore \
	   	$(CURDIR)/debian/mscore/usr/bin/mscore.real
	install -T -m0755 $(CURDIR)/debian/mscore.sh \
		$(CURDIR)/debian/mscore/usr/bin/mscore
	dh_installman
	dh_installmenu
	dh_desktop
	dh_link
	dh_strip
	dh_icons
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

get-orig-source: version = $(shell uscan --force-download --dehs --destdir . | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
get-orig-source:
	-mkdir tmp-mscore-$(version)
	tar -C tmp-mscore-$(version) -xjf mscore-$(version).tar.bz2
	cd tmp-mscore-$(version)/mscore* && \
	find -name *sf2 -exec rm {} + && \
	find -name *pdf -exec rm {} +
	mv tmp-mscore-$(version)/mscore* tmp-mscore-$(version)/mscore-$(version)\+dfsg
	tar -C tmp-mscore-$(version) -czf mscore_$(version)\+dfsg.orig.tar.gz mscore-$(version)\+dfsg/
	#mv mscore_$(version)\+dfsg.orig.tar.gz ../
	rm -r tmp-mscore-$(version)
	rm mscore*bz2

.PHONY: get-orig-source build clean binary-indep binary-arch binary install configure