File: rules

package info (click to toggle)
astroplan 0.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,024 kB
  • sloc: python: 4,411; makefile: 126
file content (28 lines) | stat: -rwxr-xr-x 749 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
#!/usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=astroplan
export PYBUILD_TEST_ARGS=-k 'not test_timezone'
export http_proxy=127.0.0.1:9

BUILD_DATE	= $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)")
SPHINXOPTS := -D html_last_updated_fmt="$(BUILD_DATE)" -D html_show_copyright=0

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

execute_after_dh_auto_build:
	PYTHONPATH=. sphinx-build $(SPHINXOPTS) -N -bhtml docs/ build/html

execute_after_dh_auto_clean:
	rm -f astroplan/version.py
	rm -rf .cache
	rm -rf api
	rm -rf build
	rm -rf .pybuild
	rm -rf astroplan.egg-info

execute_before_dh_auto_install:
	rm -rf build/html/plot_directive
	rm -rf build/html/_images
	sed -i "s#../_images/##g" build/html/tutorials/*.html