File: rules

package info (click to toggle)
treeline 3.1.5-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 6,484 kB
  • sloc: python: 20,462; javascript: 998; makefile: 55
file content (69 lines) | stat: -rwxr-xr-x 1,582 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
#!/usr/bin/make -f

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

configure: configure-stamp
configure-stamp:
	dh_testdir
	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
	touch $@

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp: configure-stamp 
	dh_testdir
	#make
	cd i18n/translations ; \
	for i in *.ts ; do \
		echo Compiling i18n file $$i ; \
		lrelease --qt=qt5 $$i ; \
	done
	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp configure-stamp
	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make unpatch
	rm -fv i18n/translations/*.qm translations/*.qm
	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	cd TreeLine ; python3 install.py -x -p /usr -b $(CURDIR)/debian/treeline
	-rm -f $(CURDIR)/debian/treeline/usr/share/doc/treeline/INSTALL
	-rm -f $(CURDIR)/debian/treeline/usr/share/doc/treeline/LICENSE
	-rm -f $(CURDIR)/debian/treeline/usr/lib/treeline/translations/*.ts

# Build architecture-independent files here.
binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installchangelogs 
	dh_installdocs
	dh_installexamples
	dh_installmime
	dh_installman debian/treeline.1
	dh_install
	dh_link
	dh_strip
	dh_compress -X.trln
	dh_fixperms
	dh_python3
	test -e /usr/bin/dh_buildinfo && dh_buildinfo
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture-dependent files here.
binary-arch:

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