File: rules

package info (click to toggle)
weresync 1.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 644 kB
  • sloc: python: 3,264; makefile: 201
file content (15 lines) | stat: -rwxr-xr-x 773 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f
DH_VERBOSE = 1
export PYBUILD_DESTDIR = debian/weresync
export PYBUILD_INSTALL_ARGS = --install-lib=/usr/share/weresync/

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

execute_after_dh_auto_install:
	mv debian/weresync/usr/bin/weresync debian/weresync/usr/share/weresync/run
	mv debian/weresync/usr/bin/weresync-gui debian/weresync/usr/share/weresync/run-gui
	find debian/weresync/usr/share/ -type f -not -name "run*" -exec chmod -x {} \; # Temporary fix to remove uneeded executable files. Next upstream version will have only properly executable files marked that way.

execute_after_dh_auto_build:
		https_proxy=127.0.0.1:9 http_proxy=127.0.0.1:9 PYTHONPATH=. python3 `which sphinx-build` -N -bhtml docs/source build/html # HTML generator