File: rules

package info (click to toggle)
teg 0.11.2%2Bdebian-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 11,988 kB
  • ctags: 7,166
  • sloc: ansic: 16,775; sh: 8,559; python: 1,442; xml: 1,241; makefile: 374
file content (62 lines) | stat: -rwxr-xr-x 1,619 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
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
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

%:
	dh $@ --with autotools_dev

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		--bindir=/usr/games \
		--sysconfdir=/etc \
		--datadir=/usr/share/games/teg \
		--disable-ggz

override_dh_auto_clean:
	# Do nothing here because make distclean does not work correctly.

override_dh_clean:
	dh_clean
	-find docs/gnome-help -name '*.html' -delete
	-find . -name '*.o' -delete
	-find . -name '*.a' -delete
	-find . -name '*.pot' -delete
	-find . -name '*.dsc' -delete
	-find . -name 'Makefile' -delete
	dh_clean \
		po/*.gmo \
		robot/tegrobot \
		client/tegclient \
		server/tegserver \
		configure-stamp \
		build-stamp \
		config.log \
		config.status \
		libtool \
		config.h \
		po/Makefile.in \
		intltool-update

override_dh_auto_install:
	$(MAKE) install DESTDIR=$(CURDIR)/debian/teg
	rm -rf $(CURDIR)/debian/teg/usr/share/pixmaps/teg_pix

override_dh_install:
	dh_install
	dh_install debian/teg.xpm /usr/share/pixmaps
	dh_install client/gui-gnome/teg.desktop /usr/share/applications
	install -m 644 client/teg_pix/teg_icono.png \
		debian/teg/usr/share/pixmaps/teg.png
	# Work around for #281164
	mkdir -p $(CURDIR)/debian/teg/usr/lib/games/teg
	cp debian/teg/usr/games/tegclient debian/teg/usr/lib/games/teg/tegclient
	cp debian/tegclient.sh debian/teg/usr/games/tegclient

override_dh_installdocs:
	dh_installdocs AUTHORS HACKING PEOPLE README.GGZ TODO

override_dh_installman:
	dh_installman debian/tegserver.6 debian/tegclient.6 debian/tegrobot.6