File: rules

package info (click to toggle)
gtkperf 0.40+ds-2
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, sid, squeeze, stretch, wheezy
  • size: 2,060 kB
  • ctags: 737
  • sloc: sh: 8,301; ansic: 5,313; yacc: 318; makefile: 316
file content (44 lines) | stat: -rwxr-xr-x 1,165 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
#!/usr/bin/make -f

LDFLAGS+=-Wl,-z,defs -Wl,--as-needed
VERSION=0.40

include /usr/share/quilt/quilt.make

build: build-stamp
build-stamp: $(QUILT_STAMPFN)
	dh build --before dh_auto_configure
	# update config.{sub,guess} to fix FTBFS on avr32 (#538302)
	cp /usr/share/misc/config.sub .
	cp /usr/share/misc/config.guess .
	dh build --before build
	# CFLAGS get reset during configure, pass them to make again
	$(MAKE) CFLAGS="$(CFLAGS)"
	dh build --after build
	touch $@

clean: unpatch
	dh clean
	dh_clean data/Makefile config.guess config.sub

install: build install-stamp
install-stamp:
	dh install
	$(RM) -rf $(CURDIR)/debian/gtkperf/usr/doc
	touch install-stamp

binary-arch: install
	dh binary-arch

binary-indep: install
	dh binary-indep

binary: binary-arch binary-indep

get-orig-source:
	[ -f gtkperf_$(VERSION).tar.gz ] || wget http://qa.debian.org/watch/sf.php/gtkperf/gtkperf_$(VERSION).tar.gz
	mkdir -p get-orig-source
	cd get-orig-source && tar -zxf ../gtkperf_$(VERSION).tar.gz
	rm -rf get-orig-source/gtkperf/debian
	cd get-orig-source && tar -czf ../../gtkperf_$(VERSION)+ds.orig.tar.gz gtkperf/
	rm -rf gtkperf_$(VERSION).tar.gz get-orig-source