File: rules

package info (click to toggle)
daisy-player 9.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,840 kB
  • ctags: 329
  • sloc: sh: 11,914; ansic: 3,403; makefile: 445; sed: 16
file content (29 lines) | stat: -rwxr-xr-x 734 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
#!/usr/bin/make -f
# -*- makefile -*-

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

export DEB_CFLAGS_MAINT_APPEND=-Wall $(shell xml2-config --cflags)
ICONSDIR=debian/icons/hicolor

%:
	dh  $@ --with autoreconf

override_dh_clean:
	rm -rf $(ICONSDIR)
	dh_clean

override_dh_strip:
	dh_strip --dbg-package=daisy-player-dbg

override_dh_auto_build:
	dh_auto_build

	# Building icons
	for size in 48 72 ; do \
		mkdir -p $(ICONSDIR)/$${size}x$${size}/apps ; \
		rsvg-convert --width $$size --height $$size icons/daisy-player.svg \
			--output $(ICONSDIR)/$${size}x$${size}/apps/daisy-player.png ; done
	mkdir -p $(ICONSDIR)/scalable/apps
	gzip -c9 icons/daisy-player.svg >  $(ICONSDIR)/scalable/apps/daisy-player.svgz