File: rules

package info (click to toggle)
s2tc 1.0%2Bgit20151227-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 3,332 kB
  • ctags: 233
  • sloc: cpp: 1,788; ansic: 981; sh: 251; makefile: 50
file content (22 lines) | stat: -rwxr-xr-x 651 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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

MULTIARCH_INSTALL = debian/libtxc-dxtn-s2tc.postinst \
                    debian/libtxc-dxtn-s2tc.prerm \
                    debian/libtxc-dxtn-s2tc.install \
                    debian/libtxc-dxtn-s2tc.dirs

%:
	dh $@

$(MULTIARCH_INSTALL): % : %.in
	sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@

override_dh_install: $(MULTIARCH_INSTALL)
	dh_install