File: rules

package info (click to toggle)
flashrom 1.0-1
  • links: PTS
  • area: main
  • in suites: buster
  • size: 2,116 kB
  • sloc: ansic: 42,568; makefile: 1,113; sh: 203
file content (23 lines) | stat: -rwxr-xr-x 627 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
#!/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/makefile.mk

DEB_MAKE_INSTALL_TARGET := install PREFIX=$(CURDIR)/debian/flashrom/usr

# Reduce the number of unneeded dependencies with --as-needed.
LDFLAGS += "-Wl,--as-needed"

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

post-patches::
	@# Copy udev rules file into debian/ so that dh_installudev finds it.
	cp util/z60_flashrom.rules debian/flashrom.udev

clean::
	rm -f .dependencies .features .libdeps
	rm -f debian/flashrom.udev

common-binary-post-install-arch:: list-missing