File: rules

package info (click to toggle)
treesheets 20161120~git7baabf39-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,084 kB
  • ctags: 1,124
  • sloc: cpp: 6,198; makefile: 57; ansic: 9
file content (28 lines) | stat: -rwxr-xr-x 820 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
#!/usr/bin/make -f

include /usr/share/dpkg/default.mk

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -D src -- PACKAGE_VERSION='\"$(DEB_VERSION_UPSTREAM)\"' all
	cd treesheets && { convert icon1.ico treesheets.png && mkdir -p 16x16 32x32 && mv treesheets-0.png 16x16/treesheets.png && mv treesheets-1.png 32x32/treesheets.png; }

override_dh_auto_install:
	dh_auto_install -D src

override_dh_auto_clean:
	cd treesheets && rm -rf treesheets*.png 16x16 32x32
	dh_auto_clean -D src -- deinstall

override_dh_installdocs:
	dh_installdocs -Xhistory.txt

override_dh_installchangelogs:
	dh_installchangelogs TS/docs/history.txt

# upstream vcs files have untidy perms and dh_fixperms doesn't do a thorough enough job
override_dh_fixperms:
	dh_fixperms
	find debian/treesheets/usr/share -type f -execdir chmod -x '{}' \;