File: rules

package info (click to toggle)
weresync 1.0.7-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 600 kB
  • ctags: 247
  • sloc: python: 3,118; makefile: 203
file content (17 lines) | stat: -rwxr-xr-x 805 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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 

override_dh_auto_install:
	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. 

override_dh_auto_build:
	        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