File: rules

package info (click to toggle)
transcriber 1.4.4-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,908 kB
  • ctags: 1,092
  • sloc: tcl: 10,166; ansic: 1,915; sh: 1,455; makefile: 91; xml: 66
file content (72 lines) | stat: -rwxr-xr-x 2,032 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
65
66
67
68
69
70
71
72
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

SHELL=/bin/bash
package=transcriber

build: build-stamp
build-stamp:
	dh_testdir
	cd src; ./configure --with-snack=/usr/lib --with-tcl=/usr/lib/tcl8.2 --with-tk=/usr/lib/tk8.2 --prefix=/usr --disable-stubs
	make -C src TCLTK_LIB=/usr/lib SNACK_DIR=/usr/lib TRANS_DIR=/usr all
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	-rm -f build-stamp
	-make -C src distclean
	-rm -f `find . -name "*~"`
	-rm -rf debian/tmp debian/files* core debian/substvars
	-rm -f config.cache
#	-cd contrib/nist; make bare; find -name Makefile | xargs rm
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	find tcl img convert | cpio -dpm debian/tmp/usr/lib/transcriber
	## fix random executable bit from upstream source
	chmod -x debian/tmp/usr/lib/transcriber/tcl/*
	find debian/tmp/usr/lib/transcriber/tcl -type f | \
		while read file; do if head -1 $$file | grep -q '^#!/bin/sh';\
		then chmod +x $$file; fi; done
	install -m 755 src/trans debian/tmp/usr/bin
	install -m 644 -s src/libtrans.so debian/tmp/usr/lib/transcriber
	install -m 644 src/pkgIndex.tcl debian/tmp/usr/lib/transcriber

binary-indep: build install
# 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 install
	dh_testversion
	dh_testdir
	dh_testroot
	cd doc; find . | cpio -dpm ../debian/tmp/usr/share/doc/transcriber/html
	dh_installdocs README 
	dh_installexamples demo/*
	dh_installmanpages
	cp etc/* debian/tmp/etc/transcriber
	cd contrib; find html_library-0.3 | cpio -dpm ../debian/tmp/usr/lib
	dh_installmenu
	dh_installcron
	dh_installchangelogs
	dh_link
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	chmod a+w debian/tmp/var/lib/transcriber
	dh_gencontrol
	dh_md5sums
	dh_builddeb


binary: binary-indep binary-arch

.PHONY: build clean binary-indep binary-arch binary install