File: rules

package info (click to toggle)
simplemonitor 1.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,520 kB
  • sloc: python: 8,725; sh: 258; makefile: 74; javascript: 69
file content (23 lines) | stat: -rwxr-xr-x 716 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
#!/usr/bin/make -f

export PYBUILD_NAME=simplemonitor
export PYBUILD_AFTER_INSTALL=rm {destdir}/usr/lib/python3*/dist-packages/simplemonitor/winmonitor.py \
                                {destdir}/usr/bin/winmonitor

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

execute_after_dh_auto_build:
	PYTHONPATH=$(BUILDDIR3) sphinx-build docs/ build_docs/sphinx/html

execute_after_dh_auto_install:

	set -e; \
	CONFIG_DEST_DIR=debian/tmp/etc/simplemonitor; \
	mkdir -p "$$CONFIG_DEST_DIR"; \
	cp debian/example/* "$$CONFIG_DEST_DIR"

override_dh_auto_clean:
	# Avoid the deletion of upstream build/build.sh and
	# build/update-contributors.sh
	dh_clean --exclude=build/build.sh --exclude=build/update-contributors.sh