File: rules

package info (click to toggle)
mtdev 1.1.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 1,528 kB
  • ctags: 394
  • sloc: sh: 11,301; ansic: 1,444; python: 85; makefile: 60
file content (28 lines) | stat: -rwxr-xr-x 813 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

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

DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
distribution	:= $(shell lsb_release -is)
LDFLAGS += -Wl,-z,defs -Wl,--as-needed

DEB_DH_MAKESHLIBS_ARGS_libmtdev1 = --add-udeb=libmtdev1-udeb

DEB_INSTALL_MANPAGES_mtdev-tools = debian/mtdev-test.1

change_dist: control links

links:
	$(MAKE) -f debian/rules.conf $@

common-binary-post-install-arch::
	find debian/tmp/usr/lib -name \*.la -exec rm {} \;
	find debian/tmp/usr/lib -name \*.a -exec rm {} \;

common-binary-predeb-arch:: list-missing

binary-install/libmtdev1-udeb::
	rm -rf debian/libmtdev1-udeb/usr/share/doc/libmtdev1-udeb