File: rules

package info (click to toggle)
vmm 0.7.0-0.3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,812 kB
  • sloc: python: 4,710; makefile: 217; sh: 172
file content (39 lines) | stat: -rwxr-xr-x 914 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

%:
	dh $@ --buildsystem=pybuild --with python3,sphinxdoc

override_dh_auto_build-indep:
	dh_auto_build --indep
	$(MAKE) -C doc/api html
	mv doc/api/build/html doc/api/build/api
	$(MAKE) -C doc/web html

#override_dh_sphinxdoc:
#	dh_sphinxdoc || :

override_dh_installdocs:
	dh_installdocs
	mv debian/vmm/usr/share/doc/vmm/INSTALL \
	   debian/vmm/usr/share/doc/vmm/HOWTO

override_dh_fixperms:
	dh_fixperms
	chmod -R o=,g=rX,u=rwX debian/vmm/etc/vmm

override_dh_compress:
	dh_compress -X.pgsql -X.cf -X.py
	# dh_compress seems to give precedence to -X, so we must manually
	# compress the following manpage, whose name matches the second
	# exclusion pattern:
	gzip -9n debian/vmm/usr/share/man/man5/vmm.cfg.5

override_dh_clean:
	dh_clean
	$(MAKE) -C doc/api clean
	$(MAKE) -C doc/web clean
	python3 setup.py clean
	rm -rf VirtualMailManager.egg-info