forked from epsylon3/android_external_i2c-tools
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathModule.mk
More file actions
31 lines (23 loc) · 727 Bytes
/
Copy pathModule.mk
File metadata and controls
31 lines (23 loc) · 727 Bytes
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
# 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) && \
$(PYTHON) setup.py
all-python: $(INCLUDE_DIR)/i2c/smbus.h
$(DISTUTILS) build
clean-python:
$(DISTUTILS) clean
rm -rf py-smbus/build
install-python:
$(DISTUTILS) install --root=$(DESTDIR) --prefix=$(prefix)
all: all-python
clean: clean-python
install: install-python