File: rules

package info (click to toggle)
membernator 1.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 152 kB
  • sloc: python: 248; makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 450 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export PYBUILD_NAME = membernator

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

override_dh_auto_build:
	dh_auto_build

	# compile locales and remove unecessary files
	for po in locales/*/LC_MESSAGES/*.po; do \
		msgfmt -o $${po%.po}.mo $$po; \
	done
	find locales -type f -name *.po* -delete

override_dh_installman:
	mkdir debian/tmp
	rst2man docs/manpage.rst debian/tmp/membernator.1
	dh_installman debian/tmp/membernator.1