File: rules

package info (click to toggle)
rapiddisk 9.0.0-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,192 kB
  • sloc: ansic: 6,495; sh: 1,364; makefile: 328
file content (32 lines) | stat: -rwxr-xr-x 756 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
#!/usr/bin/make -f
#export DH_VERBOSE = 1

# See FEATURE AREAS in dpkg-buildflags(1).
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# See ENVIRONMENT in dpkg-buildflags(1).
# Package maintainers to append CFLAGS.
export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# Package maintainers to append LDFLAGS.
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

include /usr/share/dpkg/pkg-info.mk

pdkms:=rapiddisk-dkms
sname:=rapiddisk

%:
	dh $@

override_dh_auto_build:
	$(MAKE) -C src

override_dh_auto_install:
	@echo MOO
#	$(MAKE) tools-install
#	dh_auto_install
#	-rm debian/tmp/lib/modules/*/kernel/drivers/block/rapiddisk*.ko

override_dh_dkms-indep:
	dh_install module/* usr/src/$(pdkms)-$(DEB_VERSION_UPSTREAM)
	dh_dkms -V $(DEB_VERSION_UPSTREAM)