File: rules

package info (click to toggle)
fcoe-utils 1.0.32+git20190507.9834b34-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,092 kB
  • sloc: ansic: 11,945; sh: 1,298; makefile: 81
file content (35 lines) | stat: -rwxr-xr-x 764 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
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f

#export DH_VERBOSE=1

# For Hardening
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk


%:
	dh $@;

override_dh_auto_configure:
	./bootstrap.sh
	dh_auto_configure

override_dh_auto_install:
	dh_auto_install
	mv debian/fcoe-utils/lib/systemd/system/fcoe.service debian/fcoe-utils/lib/systemd/system/fcoe-utils.service

override_dh_installinit:
	dh_installinit --no-start

override_dh_auto_clean:

	[ ! -f Makefile ] || make clean;

	# Remove the broken links
	rm -f compile depcomp install-sh missing ar-lib Makefile.in aclocal.m4 configure Makefile config.* *.spec
	rm -f include/fcoe_utils_version.h lib/.dirstamp
	dh_auto_clean

override_dh_missing:
	dh_missing --fail-missing