File: rules

package info (click to toggle)
xtel 3.3.0-5.6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,924 kB
  • ctags: 1,677
  • sloc: ansic: 15,657; sh: 229; makefile: 66
file content (112 lines) | stat: -rwxr-xr-x 3,284 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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

# This is the debhelper compatability version to use.
export DH_COMPAT=5

build: build-stamp
build-stamp:
	dh_testdir

	# Add here commands to compile the package.
	# $(MAKE)

	# Imake commands
	xmkmf
	make Xtel
	# convert the mean gif file into a png file
	gif2png xtel.gif
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	
	# Add here commands to clean up after the build process.
	-$(MAKE) clean
	rm -f xtel.png
	find . -name Makefile -print | xargs rm -f
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Add here commands to install the package into debian/xtel.
	$(MAKE) install DESTDIR=`pwd`/debian/xtel
	# Install the examples
	#install -m 644 exemples/*.vdt debian/xtel/usr/share/doc/xtel/examples/
	dh_installexamples exemples/*.vdt
	# Install font support and fonts
	install -m 644 fonts/fonts.alias debian/xtel/etc/X11/fonts/misc/xtel.alias
	install -m 644 fonts/*.pcf.gz debian/xtel/usr/share/fonts/X11/misc/
	# Install app-default for xtel
	install -m 644 XTel-color debian/xtel/etc/X11/app-defaults/
	# Install logrotate conf file
	install -m 644 debian/logrotate.conf debian/xtel/etc/logrotate.d/xtel
	# Remove non-standard font directory
	rm -rf debian/xtel/usr/share/fonts/X11/xtel
	# Install french documentation in the french docs directory
	install -m 644 debian/index-fr.html debian/xtel/usr/share/doc/LANG/fr/xtel/index.html
	perl -MMIME::Base64  -ne 'print decode_base64($$_)' < debian/bullet.gif.base64 > debian/xtel/usr/share/doc/LANG/fr/xtel/bullet.gif
	install -m 644 HISTOIRE.txt debian/xtel/usr/share/doc/LANG/fr/xtel/
	install -m 644 LISEZMOI.txt debian/xtel/usr/share/doc/LANG/fr/xtel/
	install -m 644 FAQ.txt debian/xtel/usr/share/doc/LANG/fr/xtel/
	install -m 644 README_IMINITEL.txt debian/xtel/usr/share/doc/LANG/fr/xtel/
	gzip -9v debian/xtel/usr/share/doc/LANG/fr/xtel/*.txt
	# Install png image example
	install -m 644 xtel.png debian/xtel/usr/share/doc/xtel/
	# Create a symlink in /usr/share/doc/xtel to the french doc directory
	ln -s ../LANG/fr/xtel debian/xtel/usr/share/doc/xtel/fr
	#rm -f debian/xtel/usr/X11R6/lib/X11/app-defaults
	touch install-stamp

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
#	dh_testversion
	dh_testdir
	dh_testroot
	dh_installdebconf	
	dh_installdocs
	dh_installexamples
	dh_installmenu
	dh_installxfonts
#	dh_installemacsen
#	dh_installpam
#	dh_installinit
	dh_installcron
	dh_installman xteld.man
	# install xtel man page under X11 directory tree
	dh_installman xtel.man
	dh_installinfo
	install -d -m 755 debian/xtel/usr/share/doc-base
	install -m 644 debian/doc-base debian/xtel/usr/share/doc-base/xtel
#	dh_undocumented
	dh_installchangelogs 
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
# You may want to make some executables suid here.
#	dh_suidregister
#	dh_makeshlibs
	dh_installdeb
#	dh_perl
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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