Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 # Directory for tmp installation of the package. Files must be installed/copied there
6 # before being packaged
7 TMPDIR=debian/tmp
8
9 UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed 's/-[^-]*$$//')
10 REVISION := $(shell echo $(UPSTREAM_VERSION) | sed -e 's/.*svn//')
11
12 %:
13 dh $@ --buildsystem=autoconf
14
15 override_dh_auto_configure:
16 ./autogen.sh
17 dh_auto_configure
18 sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' \
19 debian/libfaifa-dev.links.in > debian/libfaifa-dev.links
20 sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' \
21 debian/libfaifa-dev.install.in > debian/libfaifa-dev.install
22
23 override_dh_auto_build:
24 SVN_REV=$(REVISION) STRIP=strip $(MAKE)
25
26 override_dh_auto_install:
27 dh_auto_install -- STRIP=true
28
29 override_dh_shlibdeps:
30 dh_shlibdeps -Llibfaifa -l$(CURDIR)/$(TMPDIR)/usr/lib/faifa -a
31
32 get-orig-source:
33 sh debian/orig-tar.sh $(UPSTREAM_VERSION)