File: rules

package info (click to toggle)
usb-modeswitch-data 20191128-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,328 kB
  • sloc: tcl: 53; makefile: 41; sh: 19
file content (17 lines) | stat: -rwxr-xr-x 603 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f
%:
	dh $@

override_dh_auto_clean:
	# Don't run upstream's clean, as it puts the tree in a state different from tarball
	rm -f debian/usb-modeswitch-data.usb_modeswitch.udev

# Install in debian/tmp, to pick things with dh_install
# Pack the rules for usb-modeswitch-data
override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp/ -- db-install-packed
	# Let dh_installudev install the udev rule.
	mv debian/tmp/lib/udev/rules.d/40-usb_modeswitch.rules debian/usb-modeswitch-data.usb_modeswitch.udev

override_dh_installudev:
	dh_installudev --priority=40 --name=usb_modeswitch