File: rules

package info (click to toggle)
rsskit 0.4-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, stretch
  • size: 752 kB
  • ctags: 564
  • sloc: objc: 2,041; makefile: 23; sh: 4
file content (36 lines) | stat: -rwxr-xr-x 884 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
33
34
35
36
#!/usr/bin/make -f
#export DH_VERBOSE=1

include /usr/share/GNUstep/debian/config.mk
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-z,defs -Wl,--as-needed

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
optim := debug=yes
endif

%:
	dh $@

override_dh_auto_build:
# Use a Debian-specific SONAME because of the silent ABI break
# introduced by upstream in 0.4.
	$(MAKE) $(optim) messages=yes INTERFACE_VERSION=0d \
	  $(shell dpkg-buildflags --export=cmdline)
# Rebuild the API docs, taking care to preserve the original ones.
	mv Documentation upstream-doc
	doxygen ./doxygen

override_dh_auto_install:
	$(MAKE) install INTERFACE_VERSION=0d DESTDIR=$(CURDIR)/debian/tmp

override_dh_clean:
	[ ! -d upstream-doc ] || ($(RM) -r Documentation; mv \
	  upstream-doc Documentation)
	dh_clean

override_dh_link:
	gsdh_gnustep
	dh_link

override_dh_strip:
	dh_strip --dbg-package=librsskit0d-dbg