File: rules

package info (click to toggle)
sysconfig 0.0.13
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 120 kB
  • ctags: 15
  • sloc: sh: 501; makefile: 43
file content (59 lines) | stat: -rwxr-xr-x 1,428 bytes parent folder | download | duplicates (3)
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
50
51
52
53
54
55
56
57
58
59
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

DEB_HOST_ARCH  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)

build:

clean:
	dh_testdir
	dh_clean 

install:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	$(MAKE) -f debian/rules install-sysconfig-hardware-arch-$(DEB_HOST_ARCH)

install-sysconfig-hardware-%: export DH_OPTIONS = -psysconfig-hardware

install-sysconfig-hardware-arch-s390 install-sysconfig-hardware-arch-s390x: install-sysconfig-hardware-common
	dh_install etc/sysconfig/scripts/hardware/*-ccw* etc/sysconfig/scripts/hardware
	dh_install usr/share/initramfs-tools

install-sysconfig-hardware-arch-%:

install-sysconfig-hardware-common:
	dh_installdirs etc/sysconfig/hardware
	dh_install etc/sysconfig/scripts/common
	dh_install etc/sysconfig/scripts/hardware/functions
	dh_install etc/sysconfig/scripts/hardware/hw* etc/sysconfig/scripts/hardware
	dh_install etc/sysconfig/scripts/hardware/udev* etc/sysconfig/scripts/hardware
	dh_install lib
	dh_installman man/hw*.8
	dh_install sbin/hw* sbin

binary-indep: install

binary-arch: install
	dh_testdir
	dh_testroot
	dh_installchangelogs -s
	dh_installdocs -s
	dh_installexamples -s
	dh_installman -s
	dh_link -s
	dh_strip -s
	dh_compress -s
	dh_fixperms -s
	dh_installdeb -s
	dh_gencontrol -s
	dh_md5sums -s
	dh_builddeb -s

binary: binary-arch binary-indep
.PHONY: build clean binary-indep binary-arch binary install