File: rules

package info (click to toggle)
kover 1%3A4-7
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 600 kB
  • ctags: 544
  • sloc: cpp: 4,957; ansic: 534; makefile: 53; sh: 13; xml: 8
file content (73 lines) | stat: -rwxr-xr-x 1,374 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

#export DH_VERBOSE=1

include /usr/share/dpatch/dpatch.make

builddir/CMakeCache.txt: $(patched)
	dh_testdir
	
	mkdir -p builddir
	cd builddir && cmake ..
	
	touch configure-stamp

build: builddir/CMakeCache.txt build-stamp
build-stamp: patch-stamp
	dh_testdir

	cd builddir && $(MAKE)
	
	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	
	rm -f configure-stamp build-stamp

	[ ! -f Makefile ] || $(MAKE) clean

	rm -rf builddir
	
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	cd builddir && $(MAKE) install DESTDIR=$(CURDIR)/debian/kover
	# hack.
	cd $(CURDIR)/debian/kover/usr && \
		mv local/* . && rmdir local
	cd $(CURDIR)/debian/kover/usr/share && mkdir kde4 && mv apps kde4

	chrpath -d $(CURDIR)/debian/kover/usr/bin/kover

	convert $(CURDIR)/debian/kover/usr/share/icons/locolor/32x32/apps/kover.png \
		$(CURDIR)/debian/kover/usr/share/icons/locolor/32x32/apps/kover.xpm

binary-indep: build install

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs AUTHORS ABOUT-NLS THANKS NEWS README
	dh_installmenu
	dh_installman
	dh_installchangelogs ChangeLog
	dh_icons
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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