File: rules

package info (click to toggle)
tkman 2.0.6-3
  • links: PTS
  • area: non-free
  • in suites: hamm, slink
  • size: 876 kB
  • ctags: 296
  • sloc: tcl: 7,327; makefile: 250; sh: 6
file content (64 lines) | stat: -rwxr-xr-x 1,333 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/make -f
# -*- makefile -*-

# This is the rules file for the tkman package.

export DH_VERBOSE=1

package = tkman

topdir = $(shell pwd)
tmpdir = $(topdir)/debian/tmp

build: build-stamp
build-stamp:
	dh_testdir
	make
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	-rm -f build-stamp retkman
	-make clean
	dh_clean

binary-indep: build
	$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs
	make prefix=$(tmpdir) install
	install -p -m 644 debian/tkman.1 debian/retkman.1 \
		$(tmpdir)/usr/man/man1/
	install -p -m 644 contrib/AIcons.xpm contrib/TkMan.xpm \
		$(tmpdir)/usr/X11R6/include/X11/pixmaps
# allow to write formatted pages to /var/catman
	chown man.root $(tmpdir)/usr/bin/tkman
#	chmod 4755 $(tmpdir)/usr/bin/tkman
	dh_installdocs
	install -d -m 755 $(tmpdir)/usr/share/doc-base/
	install -m 644 debian/docbase $(tmpdir)/usr/share/doc-base/tkman
	dh_installexamples
	dh_installmenu
	dh_installchangelogs CHANGES
	dh_compress
	dh_fixperms
#	dh_suidregister
	dh_installdeb
	dh_gencontrol
#	dh_du
	dh_md5sums
	dh_builddeb

# Below here is fairly generic really

binary:		binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean