File: rules

package info (click to toggle)
xfmail 1.4.4-1
  • links: PTS
  • area: non-free
  • in suites: potato
  • size: 3,476 kB
  • ctags: 4,280
  • sloc: ansic: 60,762; cpp: 1,870; sh: 258; makefile: 207
file content (56 lines) | stat: -rwxr-xr-x 1,250 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
#!/usr/bin/make -f
#
# Rules for making XFmail - Matt Ryan
#
CC=gcc

Makefile:
	test -f Makefile || \
	./configure --x-includes=/usr/include/X11 --with-maildir=/var/spool/mail --with-dbm-lib=gdbm

build:	stamp-build

stamp-build: Makefile
	dh_testdir
	# $(CC) -O2 -Wall debian/mailbox.c -o debian/mailbox -llockfile
	$(MAKE)
	touch stamp-build

clean:
	dh_testdir
	dh_testroot
	-test -f Makefile && make clean
	-rm -f ui/Makefile regex/Makefile compface/Makefile ui/config.h ui/version.h  #debian/mailbox
	rm -f Makefile
	dh_clean

binary:	build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# Install binary and man page
	install -m 755 -s ui/xfmail debian/tmp/usr/X11R6/bin/xfmail
	# install -d debian/tmp/usr/lib/xfmail
	# install -m 2755 -o root -g mail -s debian/mailbox debian/tmp/usr/lib/xfmail/mailbox
	install -m 644 ui/xfmail.1 debian/tmp/usr/X11R6/man/man1/xfmail.1x

	dh_installdocs

	install -m 644 ChangeLog debian/tmp/usr/share/doc/xfmail/changelog-cvs
	install -m 644 Changes debian/tmp/usr/share/doc/xfmail/changelog

	dh_installmenu
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_suidregister
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

.PHONY: do_cfg build binary clean checkroot