File: rules

package info (click to toggle)
libsynthesis 3.4.0.47.5%2Bsyncevolution-1.5.2-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 16,788 kB
  • ctags: 14,328
  • sloc: cpp: 98,443; ansic: 33,129; xml: 5,806; objc: 4,656; pascal: 607; sh: 539; perl: 468; makefile: 296
file content (35 lines) | stat: -rwxr-xr-x 1,009 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 -*-
UPSTREAMTAG=upstream/3.4.0.47.5+syncevolution-1.5.2

UPSTREAM_VERSION=$(subst upstream/,,${UPSTREAMTAG})
SOURCEPKG=$(shell dpkg-parsechangelog | sed  -n 's/^Source: \(.*\)/\1/p')
ORIG=${SOURCEPKG}_${UPSTREAM_VERSION}.orig.tar.gz

%: 
	dh $@

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

get-orig-source: 
	git archive --format=tar --prefix=${SOURCEPKG}-${UPSTREAM_VERSION}/ ${UPSTREAMTAG} | gzip -9 > ../${ORIG}

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)