File: rules

package info (click to toggle)
praw 7.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 146,936 kB
  • sloc: python: 17,338; makefile: 139
file content (20 lines) | stat: -rwxr-xr-x 436 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 = praw
export PYBUILD_DISABLE = test

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

execute_after_dh_auto_build:
	cd docs && python3 -m sphinx . ../debian/html

execute_before_dh_auto_install:
	mv praw.egg-info praw.egg-info.orig

execute_after_dh_clean:
	rm -rf debian/html
	if [ -d praw.egg-info.orig ]; then \
		rm -rf praw.egg-info; \
		mv praw.egg-info.orig praw.egg-info; \
	fi