File: rules

package info (click to toggle)
dbuskit 0.1.1-11
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 3,948 kB
  • sloc: objc: 10,527; sh: 9,464; ansic: 200; makefile: 33
file content (46 lines) | stat: -rwxr-xr-x 1,178 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
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/usr/bin/make -f
#export DH_VERBOSE=1

include /usr/share/GNUstep/debian/config.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

projects := SERIAL_SUBDIRECTORIES="Source Tools"

%:
	dh $@

override_dh_auto_build-arch:
	rm -rf libtool Tests/obj Tests/DBusKitTests.bundle
	dh_auto_build -- $(optim) $(verbose) $(projects) \
	  $(shell dpkg-buildflags --export=cmdline)

override_dh_auto_build-indep:
ifdef docs
	dh_auto_build -- -C Documentation $(verbose)
	cp debian/dbuskit-doc.install.in debian/dbuskit-doc.install
	cp debian/dbuskit-doc.links.in debian/dbuskit-doc.links
endif

override_dh_auto_test-arch:
	xvfb-run --auto-servernum \
	  dbus-test-runner --max-wait=900 --bus-type=both \
	  --task=dh_auto_test --parameter -- --parameter messages=yes \
	  || (cat tests.log; exit 1)

override_dh_auto_test-indep: ;

override_dh_auto_install-arch:
	dh_auto_install -- $(projects)

override_dh_auto_install-indep:
ifdef docs
	dh_auto_install -- -C Documentation
	$(RM) -r debian/tmp$(GNUSTEP_SYSTEM_DOC)/Developer/DBusKit/ReleaseNotes
endif

override_dh_clean:
	rm -rf Tests/obj Tests/DBusKitTests.bundle
	dh_clean libtool

execute_before_dh_link:
	gsdh_gnustep --no-move