File: rules

package info (click to toggle)
getmail 3.2.5-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 428 kB
  • ctags: 161
  • sloc: python: 1,777; sh: 31; makefile: 12
file content (25 lines) | stat: -rwxr-xr-x 824 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
#!/usr/bin/make -f
# debian/rules by Fredrik Steen <stone@debian.org>.
# Based on public domain file writeen by Joey Hess.
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_INSTALL_MANPAGES_getmail := getmail.1 debian/man/getmail_maildir.1 debian/man/getmail_mbox.1
DEB_INSTALL_CHANGELOGS_ALL := CHANGELOG

# Here we make gemail.py executable right before creating the deb;
# this happens *after* permissions are fixed.
binary-predeb/getmail::
	chmod 0755 debian/getmail/usr/lib/getmail/getmail.py
         

build/getmail::
	# Generate manpages
	chmod 755 debian/man/stn_buildmanpages
	debian/man/stn_buildmanpages generate
clean::
	chmod 755 debian/man/stn_buildmanpages
	debian/man/stn_buildmanpages clean