File: rules

package info (click to toggle)
libgnomecanvasmm2.6 2.26.0-3.1
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 2,868 kB
  • sloc: sh: 9,112; cpp: 2,787; xml: 1,995; makefile: 137
file content (32 lines) | stat: -rwxr-xr-x 1,288 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/autoreconf.mk


SHARED_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libgnomecanvasmm-[0-9\.]+-[0-9][0-9a-z]*)[[:space:]]*$$/\1/p' debian/control)
DEV_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libgnomecanvasmm-[0-9\.]+-dev)[[:space:]]*$$/\1/p' debian/control)
DOC_PKG := $(shell sed -rn 's/^Package:[[:space:]]*(libgnomecanvasmm-[0-9\.]+-doc)[[:space:]]*$$/\1/p' debian/control)
SHVER := 2.23.1

LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

export AUTOHEADER = true
DEB_CONFIGURE_EXTRA_FLAGS += --enable-static
DEB_DH_INSTALL_SOURCEDIR := debian/tmp
DEB_DH_MAKESHLIBS_ARGS_$(SHARED_PKG) := -V"$(SHARED_PKG) (>= $(SHVER))"
DEB_INSTALL_DOCS_$(DOC_PKG) += -XMakefile -XDoxyfile
DEB_INSTALL_EXAMPLES_$(DOC_PKG) += -XMakefile -X.deps -X.libs -X.o

binary-post-install/$(DEV_PKG)::
	mkdir debian/$(DEV_PKG)/usr/lib/$(DEB_HOST_MULTIARCH)
	mv debian/$(DEV_PKG)/usr/lib/pkgconfig debian/$(DEV_PKG)/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig

build/$(DOC_PKG)::
	$(MAKE) -C docs/reference
	find docs/reference/html -name '*.md5' -print0 | xargs -r0 rm -v -f

install/$(DOC_PKG)::
	$(MAKE) -C examples clean