[mousetrap/gnome3-wip: 172/240] Attempt to implement autotools using setup.py.
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 172/240] Attempt to implement autotools using setup.py.
- Date: Mon, 8 Sep 2014 15:27:01 +0000 (UTC)
commit fc2ded0c19c8ae54cae0c90009b167f3ca227b6b
Author: Stoney Jackson <dr stoney gmail com>
Date: Thu Jun 26 00:55:59 2014 -0400
Attempt to implement autotools using setup.py.
STATUS
* Does not pass `make distcheck`; lots of files not being distributed.
* `make uninstall` is ugly and doesn't really work.
* `make clean` doesn't seam to clean much... but maybe that's what it does.
Makefile.am | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
configure.ac | 9 ---------
2 files changed, 56 insertions(+), 10 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 0f89278..4f1bd79 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1 +1,56 @@
-SUBDIRS = bin src
+# Standard targets generated by automake
+# Source: http://www.gnu.org/software/automake/manual/automake.html#Standard-Targets
+#
+# make all - Build programs, libraries, documentation, etc. (same as make).
+# make install - Install what needs to be installed, copying the files from the package’s tree to
system-wide directories.
+# make install-strip - Same as make install, then strip debugging symbols. Some users like to trade space
for useful bug reports...
+# make uninstall - The opposite of make install: erase the installed files. (This needs to be run from the
same build tree that was installed.)
+# make clean - Erase from the build tree the files built by make all.
+# make distclean - Additionally erase anything ./configure created.
+# make check - Run the test suite, if any.
+# make installcheck - Check the installed programs or libraries, if supported.
+# make dist - Recreate package-version.tar.gz from all the source files.
+
+mousetrapdir=$(pkgpythondir)
+
+nobase_mousetrap_SOURCES= \
+ setup.py \
+ src/mousetrap/__init__.py \
+ src/mousetrap/plugins/__init__.py \
+ src/mousetrap/plugins/eyes.py \
+ src/mousetrap/plugins/interface.py \
+ src/mousetrap/plugins/display.py \
+ src/mousetrap/plugins/camera.py \
+ src/mousetrap/plugins/nose.py \
+ src/mousetrap/i18n.py \
+ src/mousetrap/image.py \
+ src/mousetrap/vision.py \
+ src/mousetrap/main.py \
+ src/mousetrap/tests/__init__.py \
+ src/mousetrap/tests/test_mouse_pointer.py \
+ src/mousetrap/tests/test_vision.py \
+ src/mousetrap/tests/run_python_tests.py \
+ src/mousetrap/gui.py \
+ src/mousetrap/config.py \
+ src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po
+
+nobase_mousetrap_DATA= \
+ src/mousetrap/haars/haarcascade_mcs_righteye.xml \
+ src/mousetrap/haars/haarcascade_mcs_lefteye.xml \
+ src/mousetrap/haars/haarcascade_frontalface_default.xml \
+ src/mousetrap/haars/haarcascade_mcs_nose.xml \
+ src/mousetrap/haars/haarcascade_eye.xml \
+ src/mousetrap/mousetrap.yaml
+
+all-local:
+ $(PYTHON) setup.py build
+
+install-exec-local:
+ $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+
+uninstall-local:
+ #FIXME: THIS IS NOT VERY NICE
+ rm -rf $(DESTDIR)$(libdir)/python*/site-packages/*mousetrap*
+
+clean-local:
+ $(PYTHON) setup.py clean --all
diff --git a/configure.ac b/configure.ac
index ea8441b..3f87150 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,15 +21,6 @@ AM_CHECK_PYMOD(yaml,,,[AC_MSG_ERROR(Could not find python module yaml)])
AC_CONFIG_FILES([
Makefile
-src/Makefile
-src/mousetrap/Makefile
-src/mousetrap/plugins/Makefile
-src/mousetrap/tests/Makefile
-src/mousetrap/haars/Makefile
-src/mousetrap/locale/Makefile
-src/mousetrap/locale/en/Makefile
-src/mousetrap/locale/en/LC_MESSAGES/Makefile
-bin/Makefile
])
AC_OUTPUT
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]