File: rules

package info (click to toggle)
gnustep-sqlclient 1.8.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 1,176 kB
  • sloc: objc: 14,275; perl: 965; makefile: 22; sh: 5
file content (32 lines) | stat: -rwxr-xr-x 878 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
#!/usr/bin/make -f
#DH_VERBOSE = 1

include /usr/share/GNUstep/debian/config.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,--as-needed
export LINKSQLCLIENT := 1

sover := 1.8

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- $(optim) messages=yes \
	  $(shell dpkg-buildflags --export=cmdline)

override_dh_clean:
	$(RM) -r Bundles
	dh_clean test test.conf

override_dh_auto_test:
# Test at least the SQLite bundle; the others require a server running.
	echo "GNUSTEP_SYSTEM_LIBRARY=$(CURDIR)" > test.conf
	chmod 0644 test.conf
	mkdir -p Bundles/SQLClient$(sover)
	cp -a SQLite.bundle Bundles/SQLClient$(sover)
	LD_LIBRARY_PATH=$(CURDIR)/obj:$$LD_LIBRARY_PATH \
	  GNUSTEP_CONFIG_FILE=$(CURDIR)/test.conf ./obj/testSQLite

override_dh_strip:
	dh_strip --dbgsym-migration='libsqlclient$(sover)-dbg (<< 1.8.1-2~)'