File: rules

package info (click to toggle)
gamgi 0.14.8-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 16,244 kB
  • ctags: 7,535
  • sloc: ansic: 138,873; xml: 67,127; makefile: 527; perl: 171; sh: 33
file content (47 lines) | stat: -rwxr-xr-x 1,221 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/class/makefile.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/dpatch.mk

DEB_COMPRESS_EXCLUDE = .shtml
DEB_SRCDIR = $(CURDIR)/src
DEB_QUILT_TOPDIR = .
CFLAGS += -ansi
LDFLAGS += -Wl,--as-needed

clean::
	find . -name \*.o|xargs rm -f
	rm -f src/global/gamgi.real src/gamgi.real
	rm -f icons.tar.gz
	rm -f gamgi.1

ifneq ($(DEB_BUILD_ARCH),amd64)
configure/gamgi::
	cd src; sed -i 's/lib64/lib/g' make_local
endif

install/gamgi::
	mv src/gamgi  src/gamgi.real

	# fix hyphen errors and rename man page
	sed -e 's/\"-/\"\\-/g' -e 's/->/\\->/g' < doc/man/page > gamgi.1

	#install wrapper script
	install -D -m755 debian/gamgi.sh debian/gamgi/usr/bin/gamgi

	# install icons:
	uudecode < debian/icons.tar.gz.uu
	tar -xf icons.tar.gz -C debian/gamgi
	rm -f icons.tar.gz

binary-install/gamgi-data::
	# lintian complains over this empty directory
	-rmdir debian/gamgi-data/usr/share/gamgi/dat/util/python/

binary-install/gamgi-doc::
	# lintian complains over this redundant license file
	rm -f debian/gamgi-doc/usr/share/doc/gamgi-doc/doc/LICENSE*
	# get rid of the manual source too...
	rm -rf debian/gamgi-doc/usr/share/doc/gamgi-doc/doc/man