File: rules

package info (click to toggle)
apertium-apy 0.11.7-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,084 kB
  • sloc: python: 3,399; sh: 195; makefile: 41
file content (35 lines) | stat: -rwxr-xr-x 1,020 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
33
34
35
#!/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 apertium-apy.1

override_dh_missing:
	dh_missing --fail-missing