diff options
author | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2009-01-19 14:48:23 +0000 |
---|---|---|
committer | khali <khali@7894878c-1315-0410-8ee3-d5d059ff63e0> | 2009-01-19 14:48:23 +0000 |
commit | d6001a797197d3b0a64d29eecb766850cffaaeb6 (patch) | |
tree | 7400f32f5e33c10192da04d8d201ef5fc062c06a /py-smbus | |
parent | cce1c3e26911ab6c997f57313c27fb0cf2072314 (diff) | |
download | i2c-tools-d6001a797197d3b0a64d29eecb766850cffaaeb6.tar.gz |
Integrate py-smbus into the build system. Patch from Mike Frysinger.
git-svn-id: http://lm-sensors.org/svn/i2c-tools/trunk@5608 7894878c-1315-0410-8ee3-d5d059ff63e0
Diffstat (limited to 'py-smbus')
-rw-r--r-- | py-smbus/Module.mk | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/py-smbus/Module.mk b/py-smbus/Module.mk new file mode 100644 index 0000000..1baea51 --- /dev/null +++ b/py-smbus/Module.mk @@ -0,0 +1,31 @@ +# Python bindings for Linux SMBus access through i2c-dev +# +# Copyright (C) 2009 Mike Frysinger <vapier@gentoo.org> +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. + +PY_SMBUS_DIR := py-smbus + +PYTHON ?= python +DISTUTILS := \ + cd $(PY_SMBUS_DIR) && \ + CPPFLAGS="$(CPPFLAGS) -I../include" $(PYTHON) setup.py + +all-python: + $(DISTUTILS) build + +clean-python: + $(DISTUTILS) clean + rm -rf py-smbus/build + +install-python: + $(DISTUTILS) install + +all: all-python + +clean: clean-python + +install: install-python |