Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 DEB_MAKE_INSTALL_TARGET := install PREFIX=$(CURDIR)/debian/flashrom/usr
4
5 # Reduce the number of unneeded dependencies with --as-needed.
6 LDFLAGS += "-Wl,--as-needed"
7
8 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
9
10 ifeq "$(DEB_HOST_ARCH)" "amd64"
11 export BUILD=
12 else ifeq "$(DEB_HOST_ARCH)" "i386"
13 export BUILD=
14 else
15 export BUILD=
16 #-Dconfig_atahpt=false \
17 # -Dconfig_atapromise=false \
18 # -Dconfig_atavia=false \
19 # -Dconfig_drkaiser=false \
20 # -Dconfig_gfxnvidia=false \
21 # -Dconfig_it8212=false \
22 # -Dconfig_nic3com=false \
23 # -Dconfig_nicintel_eeprom=false \
24 # -Dconfig_nicintel=false \
25 # -Dconfig_nicintel_spi=false \
26 # -Dconfig_nicnatsemi=false \
27 # -Dconfig_nicrealtek=false \
28 # -Dconfig_ogp_spi=false \
29 # -Dconfig_rayer_spi=false \
30 # -Dconfig_satamv=false \
31 # -Dconfig_satasii=false \
32 # -Dconfig_internal=false
33 endif
34
35 %:
36 dh $@
37
38 override_dh_auto_configure:
39 dh_auto_configure -Smeson -- $$BUILD
40
41 override_dh_auto_build:
42 dh_auto_build -Smeson
43 # make flashrom.8
44
45 override_dh_auto_install:
46 dh_auto_install -Smeson
47 -mkdir -p $(CURDIR)/debian/flashrom/usr/share/man/man8
48 -cp $(CURDIR)/debian/tmp/usr/share/man/man8/flashrom.8 $(CURDIR)/debian/flashrom/usr/share/man/man8/
49 perl -ni -e '/Requires.private.*/ or print' debian/tmp/usr/lib/*/pkgconfig/flashrom.pc