File: rules

package info (click to toggle)
libwcat1 1.1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 156 kB
  • sloc: ansic: 157; makefile: 155
file content (23 lines) | stat: -rwxr-xr-x 572 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
#!/usr/bin/make -f

# Exports DEB_{BUILD,HOST}_* flags
include /usr/share/dpkg/architecture.mk

# export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export PREFIX=$(CURDIR)/debian/tmp/usr
export LIBDIR=$(PREFIX)/lib/$(DEB_HOST_MULTIARCH)
export DESTDIR=$(CURDIR)/debian/tmp

%:
	dh ${@} -Smakefile

override_dh_installdirs:
	mkdir -p $(LIBDIR)
	dh_installdirs --create-in-sourcedir

override_dh_auto_install:
	mkdir -p $(LIBDIR)
	dh_auto_install --destdir=$(DESTDIR) -- LIBDIR=$(LIBDIR)
	find $(CURDIR)/debian/libwcat1/usr/include -type d -empty -delete