File: rules

package info (click to toggle)
libsynthesis 3.4.0.47.5%2Bsyncevolution-1.5.3-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 26,208 kB
  • sloc: cpp: 98,452; ansic: 48,673; xml: 5,806; objc: 4,656; pascal: 607; sh: 539; perl: 468; makefile: 295
file content (35 lines) | stat: -rwxr-xr-x 933 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
#!/usr/bin/make -f
# -*- makefile -*-

include /usr/share/dpkg/pkg-info.mk
ORIG=${DEB_SOURCE}_${DEB_VERSION_UPSTREAM}

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --without autoreconf

override_dh_auto_configure:
	sh ./autogen.sh
	dh_auto_configure -- --prefix=/usr

get-orig-source:
	git archive --format=tar upstream/${DEB_VERSION_UPSTREAM} --prefix=${ORIG}/ | gzip -9 > ../${ORIG}.orig.tar.gz

override_dh_strip:
	dh_strip --dbgsym-migration='libsynthesis-dbg'

override_dh_makeshlibs:
	dh_makeshlibs -V

override_dh_auto_clean:
	rm -f src/CLIENT_FILES src/EXCLUDE_FILES src/EXTRA_FILES src/SDK_EXCLUDE_FILES src/SDK_FILES src/SERVER_FILES
	rm -rf src/synthesis
	dh_auto_clean

PATCH_EXPORT_SCRIPT=/usr/share/gitpkg/hooks/quilt-patches-deb-export-hook
export-patches:
	[ ! -r debian/patches ] || \
	grep "^\#*$(notdir $(PATCH_EXPORT_SCRIPT))" debian/patches/series
	rm -rf debian/patches
	sh $(PATCH_EXPORT_SCRIPT)