File: rules

package info (click to toggle)
apertium-apy 0.11.5-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,164 kB
  • sloc: sql: 22,449; python: 3,293; sh: 195; makefile: 37
file content (32 lines) | stat: -rwxr-xr-x 978 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
27
28
29
30
31
32
#!/usr/bin/make -f

export DH_OPTIONS
export LC_ALL=C.UTF-8

export PYBUILD_NAME=apertium-apy
%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_test:
	#Disable broken tests as of now
#	mkdir $(CURDIR)/testbin && \
#	ln -s /usr/bin/python3-coverage $(CURDIR)/testbin/coverage && \
#	export PATH="$(PATH):$(CURDIR)/testbin" && \
#	dh_auto_test

override_dh_auto_install:
	dh_auto_install
	#Remove extra license file
	rm -f $(CURDIR)/debian/apertium-apy/usr/share/apertium-apy/COPYING
	#Remove docs outside usr/share/doc and install them properly
	rm -f $(CURDIR)/debian/apertium-apy/usr/share/apertium-apy/README.md
	rm -f $(CURDIR)/debian/apertium-apy/usr/share/apertium-apy/tools/systemd/README

override_dh_installdocs:
	dh_installdocs
	#Rename properly
	mv $(CURDIR)/debian/apertium-apy/usr/share/doc/apertium-apy/README \
	   $(CURDIR)/debian/apertium-apy/usr/share/doc/apertium-apy/README.systemd

override_dh_installman:
	dh_installman debian/apertium-apy.1