File: rules

package info (click to toggle)
papercut 0.9.13-4
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 396 kB
  • ctags: 496
  • sloc: python: 4,872; xml: 105; sh: 71; makefile: 49; sql: 48
file content (63 lines) | stat: -rwxr-xr-x 1,495 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
#!/usr/bin/make -f

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

DB2MAN=/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl
XP=xsltproc -''-nonet

papercut.1: debian/papercut.1.xml
	$(XP) -o $@ $(DB2MAN) $<

clean:
	dh_testdir
	dh_testroot
	rm -rf *.py[co] auth/*.py[co] storage/*.py[co]
	rm -f papercut.1
	dh_clean

build:

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	install -m 0755 papercut.py \
		$(CURDIR)/debian/papercut/usr/bin/papercut
	install -m 0644 papercut_cache.py portable_locker.py settings.py \
		$(CURDIR)/debian/papercut/usr/share/papercut
	install -m 0644 default_settings.py \
		$(CURDIR)/debian/papercut/usr/share/papercut
	install -m 0644 auth/*.py \
		$(CURDIR)/debian/papercut/usr/share/papercut/auth
	install -m 0644 storage/*.py \
		$(CURDIR)/debian/papercut/usr/share/papercut/storage
	install -m 0644 debian/papercut_cfg.py \
		$(CURDIR)/debian/papercut/etc/papercut

binary-indep: build install papercut.1
	dh_testdir
	dh_testroot
	dh_pysupport /usr/share/papercut /usr/share/papercut/auth \
		/usr/share/papercut/storage
	dh_python /usr/share/papercut /usr/share/papercut/auth \
		/usr/share/papercut/storage
	dh_installchangelogs
	dh_installdocs
	dh_installlogrotate
	dh_installinit
	dh_installman
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install

binary: binary-indep binary-arch

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