File: rules

package info (click to toggle)
tkrev 9.6.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,972 kB
  • sloc: tcl: 30,582; sh: 2,296; makefile: 22; csh: 14
file content (29 lines) | stat: -rwxr-xr-x 929 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
#!/usr/bin/make -f

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

%:
	dh $@

TKDIFFVERS = $(shell grep '^set g(version)  *' tkdiff/tkdiff | sed -e 's/.*  *//' -e 's/"//g')

override_dh_install:
	dh_install debian/tkrev.desktop usr/share/applications
	dh_install debian/tkcvs.xpm usr/share/pixmaps
	cp tkrev/tkrev.tcl debian/tkrev/usr/bin/tkrev
	install -m755  tkdiff/tkdiff debian/tkdiff/usr/bin/tkdiff
	chmod +x debian/tkrev/usr/bin/tkrev
	cp -r tkrev/bitmaps debian/tkrev/usr/share/tkrev
	cp tkrev/*.tcl tkrev/tclIndex \
	  debian/tkrev/usr/share/tkrev
	mv debian/tkrev/usr/share/tkrev/tkrev_def.tcl debian/tkrev/etc/tkrev/

override_dh_installchangelogs:
	dh_installchangelogs -ptkdiff tkdiff/CHANGELOG.txt
	dh_installchangelogs --remaining-packages CHANGELOG.txt

override_dh_gencontrol:
	dh_gencontrol -ptkdiff -- \
		-v$(TKDIFFVERS)~$(DEB_VERSION)
	dh_gencontrol --remaining-packages -- \
		-Vtkdiffdep=$(TKDIFFVERS)~$(DEB_VERSION)