blob: 7110428b73a2c91f423b76a4484aca5d971cb1a4 (
plain)
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
ALLPOFILES:=$(wildcard *.po)
POFILES:=$(filter-out gcp.po,$(ALLPOFILES))
MOPATH:=i18n/%/LC_MESSAGES
MOFILES:=$(patsubst %.po,$(MOPATH)/gcp.mo,$(POFILES))
clean:
rm -f $(MOFILES)
rm -rf .dbus .gcp
dh clean
build: $(MOFILES)
$(MOPATH)/gcp.mo: %.po
mkdir -p $(@D)
msgfmt -o $@ $<
override_dh_auto_clean:
override_dh_auto_configure:
override_dh_auto_build:
override_dh_auto_install:
override_dh_auto_test:
ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
unset DBUS_SESSION_BUS_ADDRESS ; \
HOME="$$PWD" PATH="$$PWD/test:$$PWD:$$PATH" \
dbus-run-session -- test_gcp.py
endif
%:
dh $@ --with python3
|