File: rules

package info (click to toggle)
libdbd-firebird-perl 0.91-2%2Bdeb7u1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 680 kB
  • sloc: perl: 4,085; ansic: 2,262; makefile: 14
file content (22 lines) | stat: -rwxr-xr-x 518 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
#!/usr/bin/make -f

ifneq (,$(shell ls /usr/share/dpkg/buildflags.mk))
export DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/buildflags.mk
endif

export DBD_FIREBIRD_REQUIRE_EMBEDDED=1

BAD_ARCH = armel ia64 kfreebsd-amd64 kfreebsd-i386 s390

ifneq (,$(shell for a in $(BAD_ARCH); do dpkg-architecture -e$$a && echo bad$$a; done))
    export DBD_FIREBIRD_TEST_SKIP_EVENTS=1
endif

%:
	dh $@ --with=perl_dbi

override_dh_auto_clean:
	# avoid re-generating Makefile
	! [ -e Makefile ] || touch Makefile
	dh_auto_clean