File: rules

package info (click to toggle)
libextractor 1%3A1.13-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,832 kB
  • sloc: ansic: 21,583; sh: 5,498; makefile: 793; cpp: 499; sed: 16
file content (24 lines) | stat: -rwxr-xr-x 602 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk

# Enabling all hardening flags as libextractor handles untrusted data
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifeq ($(DEB_HOST_ARCH_ENDIAN),big)
  CONFIGURE_ARGS += --disable-elf
endif

%:
	dh ${@}

override_dh_auto_configure:
	dh_auto_configure -- ${CONFIGURE_ARGS}

execute_after_dh_auto_clean:
	rm -f libextractor.pc libextractor.pc.in libextractor-uninstalled.pc libextractor-uninstalled.sh

execute_after_dh_auto_install:
	# Removing useless files
	rm -f debian/tmp/usr/lib/*/*.la
	rm -f debian/tmp/usr/lib/*/libextractor/*.la