File: rules

package info (click to toggle)
sat-pubsub 0.4.0~hg437.454f61a32427-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 520 kB
  • sloc: python: 4,035; sql: 373; makefile: 25
file content (25 lines) | stat: -rwxr-xr-x 838 bytes parent folder | download
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
#!/usr/bin/make -f

PYBUILD_INSTALL_ARGS=--install-lib=/usr/share/salutatoi --install-scripts=/usr/share/salutatoi
ifeq (,$(filter terse,$(DEB_BUILD_OPTIONS)))
  PYBUILD_INSTALL_ARGS+=--verbose
endif
export PYBUILD_INSTALL_ARGS

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

execute_after_dh_auto_build:
	cd doc; $(MAKE) text

override_dh_auto_install:
	dh_auto_install --destdir=debian/tmp
	cp -a doc/.build/text debian/tmp; rm debian/tmp/text/index.txt
	rm -rf $(CURDIR)/debian/tmp/usr/share/salutatoi/sat_pubsub/test/ \
	    $(CURDIR)/debian/tmp/usr/share/salutatoi/sat_pubsub-*.egg-info/
	find debian/tmp -name __pycache__ -type d | xargs rm -rf

# temporarily do not run tests (completely broken at the moment)
override_dh_auto_test:
#	PYTHONPATH=.:/usr/share/salutatoi; export PYTHONPATH; \
#	dh_auto_test -O--buildsystem=pybuild