|
Revision 6048, 0.8 KB
(checked in by khali, 3 weeks ago)
|
|
i2c-dev: Move SMBus helper functions to include/i2c/smbus.h
|
| Line | |
|---|
| 1 | # Linux I2C header files |
|---|
| 2 | # |
|---|
| 3 | # Copyright (C) 2007, 2012 Jean Delvare <khali@linux-fr.org> |
|---|
| 4 | # |
|---|
| 5 | # This program is free software; you can redistribute it and/or modify |
|---|
| 6 | # it under the terms of the GNU General Public License as published by |
|---|
| 7 | # the Free Software Foundation; either version 2 of the License, or |
|---|
| 8 | # (at your option) any later version. |
|---|
| 9 | |
|---|
| 10 | INCLUDE_DIR := include |
|---|
| 11 | |
|---|
| 12 | INCLUDE_TARGETS := i2c/smbus.h |
|---|
| 13 | |
|---|
| 14 | # |
|---|
| 15 | # Commands |
|---|
| 16 | # |
|---|
| 17 | |
|---|
| 18 | install-include: $(addprefix $(INCLUDE_DIR)/,$(INCLUDE_TARGETS)) |
|---|
| 19 | $(INSTALL_DIR) $(DESTDIR)$(incdir)/i2c |
|---|
| 20 | for file in $(INCLUDE_TARGETS) ; do \ |
|---|
| 21 | $(INSTALL_DATA) $(INCLUDE_DIR)/$$file $(DESTDIR)$(incdir)/$$file ; done |
|---|
| 22 | |
|---|
| 23 | uninstall-include: |
|---|
| 24 | for file in $(INCLUDE_TARGETS) ; do \ |
|---|
| 25 | $(RM) $(DESTDIR)$(incdir)/$$file ; done |
|---|
| 26 | |
|---|
| 27 | install: install-include |
|---|
| 28 | |
|---|
| 29 | uninstall: uninstall-include |
|---|