File: rules

package info (click to toggle)
python-weberror 0.13.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 408 kB
  • ctags: 441
  • sloc: python: 2,774; makefile: 18
file content (26 lines) | stat: -rwxr-xr-x 681 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
#!/usr/bin/make -f
# export DH_VERBOSE=1
package=python-weberror

override_dh_clean:
	rm -rf build build-* tests/reporter_output/test_logger.log
	find . -name *\.py[co] -exec rm -f {} \;
	dh_clean install-stamp test-stamp install-python*


override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	python setup.py nosetests
endif

override_dh_installchangelogs:
	dh_installchangelogs CHANGELOG

override_dh_auto_install:
	find debian/*/ -type f -perm 755 | xargs -r chmod 644
	dh_auto_install
	find debian/python-weberror -name jquery-1.2.1.min.js -delete
	find debian/python-weberror -name jquery-1.2.3.pack.js -delete

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