File: rules

package info (click to toggle)
remem 2.12-7
  • links: PTS
  • area: main
  • in suites: bullseye, jessie-kfreebsd, sid, wheezy
  • size: 1,508 kB
  • ctags: 1,043
  • sloc: ansic: 6,624; sh: 3,350; lisp: 1,911; yacc: 340; makefile: 106
file content (84 lines) | stat: -rwxr-xr-x 1,907 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f

package=remembrance-agent

build:
	dh_testdir
	./configure --mandir='$${prefix}/share/man' --prefix='/usr' \
		--with-lispdir='/usr/share/emacs/site-lisp'
	make
	touch build

clean:
	dh_testdir
	-rm -f build
	[ !  -f Makefile ] || make distclean
	-rm -f config.cache config.log config.status
	-rm -rf *~ debian/${package} debian/*~ debian/files*
	debconf-updatepo
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	make install DESTDIR=`pwd`/debian/${package}
	-rm -rf debian/${package}/usr/lib
# What happended to savantrc and vector.doc in the other/ subdir
# in the 2.x releases?
#	install -m 644 REVISION-HISTORY debian/${package}/usr/share/doc/$(package)/changelog
#	install -m 644 other/savantrc debian/${package}/etc/savantrc
	install -m 644 debian/${package}.el \
		debian/${package}/etc/emacs/site-start.d/50${package}.el
# Move program files:
# main/ra-index main/ra-retrieve other/remem-display-mode.el other/remem-display-mode.elc



binary-indep: checkroot install
	dh_testdir
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: checkroot install
	dh_testdir
	dh_testroot
	dh_installdebconf
	dh_installdocs 
	dh_installmenu
	dh_installchangelogs 
	dh_installman other/ra-index.1 other/ra-retrieve.1
# No longer useful, should write a manpage
#	dh_undocumented ra-merge.1
	dh_installdeb
	dh_strip
	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

define checkdir
	test -f debian/rules
endef

# Below here is fairly generic really

binary: binary-indep binary-arch

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

checkroot:
	$(checkdir)
	test root = "`whoami`"

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

#Local variables:
#mode: makefile
#End: