File: rules

package info (click to toggle)
flashrom 1.6.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,268 kB
  • sloc: ansic: 67,220; sh: 1,118; python: 104; makefile: 97
file content (49 lines) | stat: -rwxr-xr-x 1,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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/make -f

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

ifeq "$(DEB_HOST_ARCH)" "amd64"
	export BUILD=
else ifeq "$(DEB_HOST_ARCH)" "i386"
	export BUILD=
else
	export BUILD=
#-Dconfig_atahpt=false \
#                     -Dconfig_atapromise=false \
#                     -Dconfig_atavia=false \
#                     -Dconfig_drkaiser=false \
#                     -Dconfig_gfxnvidia=false \
#                     -Dconfig_it8212=false \
#                     -Dconfig_nic3com=false \
#                     -Dconfig_nicintel_eeprom=false \
#                     -Dconfig_nicintel=false \
#                     -Dconfig_nicintel_spi=false \
#                     -Dconfig_nicnatsemi=false \
#                     -Dconfig_nicrealtek=false \
#                     -Dconfig_ogp_spi=false \
#                     -Dconfig_rayer_spi=false \
#                     -Dconfig_satamv=false \
#                     -Dconfig_satasii=false \
#                     -Dconfig_internal=false
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -Smeson -- $$BUILD

override_dh_auto_build:
	dh_auto_build -Smeson
#	make flashrom.8

override_dh_auto_install:
	dh_auto_install -Smeson
	-mkdir -p $(CURDIR)/debian/flashrom/usr/share/man/man8
	-cp $(CURDIR)/debian/tmp/usr/share/man/man8/flashrom.8 $(CURDIR)/debian/flashrom/usr/share/man/man8/
	perl -ni -e '/Requires.private.*/ or print' debian/tmp/usr/lib/*/pkgconfig/flashrom.pc