File: rules

package info (click to toggle)
psqlodbc 1%3A17.00.0004-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,040 kB
  • sloc: ansic: 52,144; cpp: 1,788; sh: 223; makefile: 173; sql: 157; xml: 31; javascript: 21
file content (28 lines) | stat: -rwxr-xr-x 895 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
#!/usr/bin/make -f

%:
	dh $@

override_dh_auto_configure:
	# build ANSI driver
	dh_auto_configure -- ODBC_CONFIG=$(CURDIR)/debian/odbc_config_dummy --libdir=/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)/odbc --disable-unicode
	dh_auto_build
	dh_auto_install --destdir=debian/psqlodbca
	dh_auto_clean
	# build Unicode driver
	dh_auto_configure -- ODBC_CONFIG=$(CURDIR)/debian/odbc_config_dummy --libdir=/usr/lib/$(shell dpkg-architecture -qDEB_BUILD_MULTIARCH)/odbc

override_dh_auto_test:
	if ! LC_ALL=C LD_LIBRARY_PATH=../.libs pg_virtualenv $(MAKE) -C test installcheck; then \
		cat test/regression.diffs ; \
		exit 1 ; \
	fi

override_dh_install:
	dh_install
	rm debian/odbc-postgresql/usr/lib/*/odbc/psqlodbc*.la

override_dh_auto_clean:
	dh_auto_clean
	$(MAKE) -C test clean || :
	rm -rf test/exe/ test/reset-db test/runsuite test/results test/odbc*.ini test/regression.diffs