File: rules

package info (click to toggle)
fofix-dfsg 3.121-6
  • links: PTS
  • area: main
  • in suites: sid
  • size: 27,028 kB
  • sloc: python: 44,007; makefile: 99; perl: 42; sh: 39
file content (48 lines) | stat: -rwxr-xr-x 989 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
#!/usr/bin/make -f
# -*- makefile -*-

export DH_VERBOSE=1

include /usr/share/quilt/quilt.make

build: build-stamp
build-stamp: $(QUILT_STAMPFN)
	dh_testdir

clean: unpatch
	dh_testdir
	dh_testroot
	dh_clean 

install: build
	dh_testdir
	dh_testroot
	dh_prep  
	dh_installdirs
	install -m0755 debian/fofix.sh debian/fofix/usr/games/fofix
	install -m0644 svg/fofix_icon.svg debian/fofix/usr/share/pixmaps/fofix.svg

binary-arch: install
# We have nothing to do by default.

binary-indep: install
	dh_testdir
	dh_testroot
	dh_installchangelogs doc/changelog.txt
	dh_installdocs
	dh_install
	dh_installmenu
	dh_python3
	dh_installman debian/fofix.6
	dh_compress
	# Upstream tarball had x permission for most files 
	find debian/fofix/ -type f -print0 | xargs -0 chmod a-x
	chmod +x debian/fofix/usr/games/fofix    
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install patch unpatch