File: rules

package info (click to toggle)
mpire 2.10.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,064 kB
  • sloc: python: 5,473; makefile: 206; javascript: 182
file content (30 lines) | stat: -rwxr-xr-x 829 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
#! /usr/bin/make -f

export PYBUILD_NAME=mpire

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

# Sphinx and more
execute_after_dh_auto_build-indep: export http_proxy=127.0.0.1:9
execute_after_dh_auto_build-indep: export https_proxy=127.0.0.1:9
execute_after_dh_auto_build-indep:
	# Small fix for sphinx function name change
	#perl -pi -e 's/add_stylesheet/add_css_file/' docs/conf.py
	# This is calling sphinx and more
	PYTHONPATH=.:.. make -C docs html man BUILDDIR=../build
	rm -rf build/doctrees 

# Disabled as it's handled later with Testsuite
override_dh_auto_test:
	:

override_dh_installman:
	dh_installman
	rm -rf build/man

override_dh_auto_install:
	dh_auto_install
	# Force python3 interpreter in mpire-dashboard
	perl -pi -e 's:^#!python:#!/usr/bin/python3:' debian/python3-mpire/usr/bin/mpire-dashboard