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
ALLPOFILES:=$(wildcard *.po)
POFILES:=$(filter-out gcp.po,$(ALLPOFILES))
MOPATH:=i18n/%/LC_MESSAGES
MOFILES:=$(patsubst %.po,$(MOPATH)/gcp.mo,$(POFILES))
execute_before_clean:
rm -f $(MOFILES)
rm -rf .dbus .gcp
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
|