File: rules

package info (click to toggle)
rrootage 0.23a-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,636 kB
  • sloc: cpp: 11,562; ansic: 3,444; xml: 2,032; makefile: 127; yacc: 124; sh: 52
file content (30 lines) | stat: -rwxr-xr-x 827 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
#!/usr/bin/make -f

CFLAGS := -DLINUX -Wall -g
CFLAGS += $(shell dpkg-buildflags --get CFLAGS)
CFLAGS += $(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS += $(shell dpkg-buildflags --get LDFLAGS)

%:
	dh $@ --sourcedirectory=src --buildsystem=makefile

override_dh_auto_build:
	dh_auto_build -- -f makefile.lin MORE_CFLAGS="$(CFLAGS)"

override_dh_auto_clean:
	dh_auto_clean -- -f makefile.lin

override_dh_installdirs-indep:
	dh_installdirs -i usr/share/games/rrootage

override_dh_auto_install-indep:
	cp -r rr_share/* debian/rrootage-data/usr/share/games/rrootage

override_dh_auto_install-arch:
	dh_install -a src/rrootage usr/games
	dh_install -a debian/rrootage.xpm usr/share/pixmaps
	dh_install -a debian/rrootage.desktop usr/share/applications

override_dh_link:
	$(RM) -r debian/rrootage/usr/share/doc/rrootage
	dh_link