[mousetrap/gnome3-wip: 195/240] Fix `make distcheck`, `make check`, and `make run`. * Remove `make mofiles` since that is done by se
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 195/240] Fix `make distcheck`, `make check`, and `make run`. * Remove `make mofiles` since that is done by se
- Date: Mon, 8 Sep 2014 15:28:57 +0000 (UTC)
commit cde4c23f7b7e550ffdb40d8a3605a51d635a4cf1
Author: Stoney Jackson <dr stoney gmail com>
Date: Sat Jun 28 13:37:34 2014 -0400
Fix `make distcheck`, `make check`, and `make run`.
* Remove `make mofiles` since that is done by setup.py.
* `make check` and `make run` now operate on $(builddir) not $(srcdir)
Makefile.am | 21 ++++++---------------
1 files changed, 6 insertions(+), 15 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 721b2bd..f052a50 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -108,22 +108,12 @@ $(POTFILE): $(PYTHON_FILES)
##############################################################################
-# TARGET: mofiles
-
-PO_FILES := $(shell find src/mousetrap/locale -name "*.po" -print)
-MO_FILES := $(PO_FILES:.po=.mo)
-
-mofiles: $(PO_FILES) $(MO_FILES)
-
-%.mo: %.po
- msgfmt.py "$<"
-
-
-##############################################################################
# TARGET: check
+
check-local:
- $(PYTHON) $(distdir)/src/mousetrap/tests/run_python_tests.py
+ PYTHONPATH=$(builddir)/build/lib ; \
+ $(PYTHON) `find "$(builddir)" -name "run_python_tests.py"`
##############################################################################
@@ -136,5 +126,6 @@ lint:
##############################################################################
# TARGET: run
-run:
- $(PYTHON) $(srcdir)/src/mousetrap/main.py
+run: all
+ PYTHONPATH=$(builddir)/build/lib ; \
+ $(PYTHON) $(builddir)/build/lib/mousetrap/main.py
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]