blob: 04ceb64eac5855b37bc8ebae356125b64d6fb22e [file] [log] [blame]
# Python bindings for Linux SMBus access through i2c-dev
# Copyright (C) 2009 Mike Frysinger <>
# 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
cd $(PY_SMBUS_DIR) && \
all-python: $(INCLUDE_DIR)/i2c/smbus.h
$(DISTUTILS) build
$(DISTUTILS) clean
rm -rf py-smbus/build
$(DISTUTILS) install
all: all-python
clean: clean-python
install: install-python