File: rules

package info (click to toggle)
libpg-query 15-4.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 28,320 kB
  • sloc: ansic: 163,581; sql: 69,531; ruby: 1,363; makefile: 247; cpp: 220
file content (18 lines) | stat: -rwxr-xr-x 414 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

ifeq ($(shell dpkg-architecture -qDEB_HOST_ARCH_BITS), 32)
	FAIL_COMMAND = echo "Ignoring test failure on 32 bit architecture"
else
	FAIL_COMMAND = exit 1
endif

override_dh_auto_build:
	$(MAKE) build VERBOSE=1

override_dh_auto_test:
	$(MAKE) examples test TEST_CFLAGS='$$(CPPFLAGS) $$(CFLAGS)' TEST_LDFLAGS='$$(LDFLAGS)' || $(FAIL_COMMAND)

%:
	dh $@