Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 ALLPOFILES:=$(wildcard *.po)
4 POFILES:=$(filter-out gcp.po,$(ALLPOFILES))
5 MOPATH:=i18n/%/LC_MESSAGES
6 MOFILES:=$(patsubst %.po,$(MOPATH)/gcp.mo,$(POFILES))
7
8 execute_before_clean:
9 rm -f $(MOFILES)
10 rm -rf .dbus .gcp
11
12 build: $(MOFILES)
13
14 $(MOPATH)/gcp.mo: %.po
15 mkdir -p $(@D)
16 msgfmt -o $@ $<
17
18 override_dh_auto_clean:
19 override_dh_auto_configure:
20 override_dh_auto_build:
21 override_dh_auto_install:
22
23 override_dh_auto_test:
24 ifeq "$(filter nocheck,$(DEB_BUILD_OPTIONS))" ""
25 unset DBUS_SESSION_BUS_ADDRESS ; \
26 HOME="$$PWD" PATH="$$PWD/test:$$PWD:$$PATH" \
27 dbus-run-session -- test_gcp.py
28 endif
29
30 %:
31 dh $@ --with python3