File: rules

package info (click to toggle)
solfege 3.23.4-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 29,744 kB
  • sloc: python: 26,939; xml: 4,380; ansic: 1,544; sh: 807; makefile: 655; perl: 8; exp: 7
file content (31 lines) | stat: -rwxr-xr-x 956 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
26
27
28
29
30
31
#!/usr/bin/make -f

#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# UTF-8 locale required for tests
export LC_ALL=C.UTF-8

%:
	dh $@ --with python3

override_dh_auto_build:
	dh_auto_build
	$(MAKE) update-manual

wrong_encoding_files = \
$(CURDIR)/debian/tmp/usr/share/solfege/exercises/standard/lesson-files/barnesanger \
$(CURDIR)/debian/tmp/usr/share/solfege/exercises/standard/lesson-files/progression-atte \
$(CURDIR)/debian/tmp/usr/share/solfege/exercises/standard/lesson-files/volkslieder1 \
$(CURDIR)/debian/tmp/usr/share/solfege/exercises/standard/lesson-files/volkslieder2

override_dh_auto_install:
	dh_auto_install
	for ifile in  $(wrong_encoding_files); do \
	    iconv --from-code=iso-8859-1 --to-code=utf-8 --output=$$ifile $$ifile; \
	done

# Fix #1050524 by using this target instead of override_dh_link,
# because of jdupes behavior change.
execute_after_dh_link-indep:
	jdupes -rl debian/solfege-doc/usr/share/doc