File: rules

package info (click to toggle)
lure-of-the-temptress 1.1%2Bds3-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 18,160 kB
  • sloc: sh: 74; makefile: 28
file content (38 lines) | stat: -rwxr-xr-x 727 bytes parent folder | download | duplicates (4)
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
36
37
38
#! /usr/bin/make -f

LINGUAS = de fr
package = lure-of-the-temptress
podir = $(CURDIR)/debian/po
localedir = /usr/share/locale

$(podir)/templates.pot:
	xgettext \
		--language=Shell \
		--copyright-holder="" \
		--output=$(podir)/templates.pot \
		$(CURDIR)/debian/lure


%:
	dh $@

override_dh_auto_build:
	for lang in $(LINGUAS); do \
		msgfmt -c -v --statistics -o $(podir)/$$lang.mo $(podir)/$$lang.po; \
	done

override_dh_clean:
	dh_clean
	dh_clean $(podir)/*.mo

override_dh_install:
	for lang in $(LINGUAS); do \
		dir=$(localedir)/$$lang/LC_MESSAGES/; \
		dh_installdirs $$dir; \
		cp $(podir)/$$lang.mo $(CURDIR)/debian/$(package)$$dir/lure.mo; \
	done
	dh_install

override_dh_compress:
	dh_compress -X.pdf -X.PDF