blob: 5d336e3bae1c10a5a85581c54831645aa75b871f (
plain) (
blame)
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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
export package=pyg
export debdestdir=$(CURDIR)/debian/$(package)
build: build-stamp
build-arch: build
build-indep: build
build-stamp:
dh_testdir
$(MAKE) bin #CFLAGS="-O2 -g -Wall"
touch build-stamp
clean:
dh_testdir
rm -f build-stamp
$(MAKE) clean
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install DESTDIR=$(debdestdir)
binary-arch: build install
dh_testdir
dh_testroot
dh_installdirs
dh_installchangelogs
dh_installdocs
dh_installman $(CURDIR)/debian/pygn2m.1 $(CURDIR)/debian/pygm2n.1
# dh_installinfo
# these are class modules, they don't need manpages,
# undocumented link means I'm planning to document them.
#dh_undocumented whitelist.py.3 news2mail.py.3 mail2news.py.3 pyginfo.py.3
dh_installexamples
dh_fixperms
# dh_fixperms doesn't fix perms in /usr/lib subdirs
chmod 0644 $(debdestdir)/usr/lib/$(package)/*.py
# make sure pyg executables have right permission
chmod 0755 $(debdestdir)/usr/bin/pygn2m
chmod 0755 $(debdestdir)/usr/bin/pygm2n
# dh_fixperms doesn't fix perms in /usr/share/doc subdirs
find $(debdestdir)/usr/share/doc/$(package) -type d -exec chmod 0755 {} \;
dh_python2
dh_strip
dh_compress
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# no binary arch-indep is present
binary-indep: build install
dh_testdir
dh_testroot
binary: binary-indep binary-arch
.PHONY: build build-arch build-indep binary binary-arch binary-indep clean install
|