File: rules

package info (click to toggle)
console-common 0.7.92
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,056 kB
  • sloc: perl: 526; sh: 198; awk: 134; makefile: 106
file content (40 lines) | stat: -rwxr-xr-x 945 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
36
37
38
39
40
#!/usr/bin/make -f

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


# The magic debhelper  rule
%:
	dh $@

# This has to be exported to make some magic below work.
export DH_OPTIONS

topdir=$(shell pwd)
debdir=${topdir}/debian
tmpdir=${debdir}/tmp

tmplfile=${debdir}/console-common.templates
configfile=${debdir}/console-common.config

override_dh_auto_clean:
	dh_auto_clean
	rm -f build-stamp ${tmplfile} ${configfile} debian/substvars

override_dh_auto_install:
	dh_auto_install
	DH_LCDDIR=${topdir} DH_AUTOSCRIPTDIR=${topdir} DH_OPTIONS= \
		./dh_consoledata -pconsole-common -d

	cp kbd-config debian/console-common/usr/bin

override_dh_fixperms:
	dh_fixperms
	# This alignes permissions to dh-consoledata_0.7.91
	chmod +x debian/dh-consoledata/usr/share/debhelper/dh-consoledata/config.in

override_dh_gencontrol:
	# Don't config in console-common, only console-data
	rm debian/console-common/DEBIAN/config
	dh_gencontrol