File: rules

package info (click to toggle)
elib 1.0-8
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 336 kB
  • ctags: 263
  • sloc: lisp: 2,378; makefile: 102; sh: 51
file content (78 lines) | stat: -rwxr-xr-x 2,287 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
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independant
# package.
#
# Modified for elib, Tom Lees <tom@lpsg.demon.co.uk> March 1998

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

build: build-stamp
build-stamp:
	dh_testdir

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

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp

	# Add here commands to clean up after the build process.
	-$(MAKE) clean

	dh_clean

# Build architecture-independent files here.
binary-indep: build
#	dh_testversion
	dh_testdir -i
	dh_testroot -i
	dh_clean -i -k
	dh_installdirs -i usr/share/emacs/site-lisp/elib usr/lib/emacsen-common/packages/{install,remove} \
		usr/doc/elib/html-info usr/share/doc-base

	# Add here commands to install the files into debian/tmp
	$(MAKE) prefix=`pwd`/debian/tmp/usr install
	cp elib-compile-all.el startup-template.el debian/tmp/usr/share/emacs/site-lisp/elib
	cp Makefile debian/tmp/usr/share/emacs/site-lisp/elib
	cp debian/install debian/tmp/usr/lib/emacsen-common/packages/install/elib
	cp debian/remove debian/tmp/usr/lib/emacsen-common/packages/remove/elib
	chmod 755 debian/tmp/usr/lib/emacsen-common/packages/install/elib
	chmod 755 debian/tmp/usr/lib/emacsen-common/packages/remove/elib
	cp debian/doc-base debian/tmp/usr/share/doc-base/elib
	(cd debian/tmp/usr/doc/elib/html-info && texi2html -number -split_chapter \
		../../../../../../elib.texi)
	cp elib.texi gpl.texi debian/tmp/usr/doc/elib

	dh_movefiles -i
	dh_installdocs -i NEWS README TODO
	dh_installexamples -i
	dh_installmenu -i
#	dh_installinit -i
	dh_installcron -i
#	dh_installmanpages -i
#	dh_undocumented
	dh_installchangelogs -i ChangeLog
	dh_compress -i
	dh_fixperms -i
	dh_suidregister -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

# Build architecture-dependent files here.
binary-arch:
# There aren't any

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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