File: rules

package info (click to toggle)
gobby 0.4.12-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 2,712 kB
  • ctags: 1,488
  • sloc: cpp: 11,818; sh: 3,918; makefile: 221
file content (31 lines) | stat: -rwxr-xr-x 712 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
#!/usr/bin/make -f
# -*- makefile -*-

CFLAGS = -g -Wall -Wextra $(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),-O0,-O2)
LDFLAGS= -Wl,-z,defs -Wl,--as-needed

%:
	dh $@

override_dh_auto_configure:
	./configure \
		--prefix=/usr \
		--host=$(DEB_HOST_GNU_TYPE) \
		--build=$(DEB_BUILD_GNU_TYPE) \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--with-gnome \
		--with-gtksourceview2 \
		CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"

override_dh_installmenu:
	gunzip -c $(CURDIR)/contrib/artwork/gobby.xpm.gz \
		> $(CURDIR)/debian/gobby/usr/share/pixmaps/gobby.xpm
	dh_installmenu

override_dh_strip:
	dh_strip --dbg-package=gobby-dbg

override_dh_clean:
	dh_clean config.log config.status