summaryrefslogtreecommitdiff
path: root/include/Module.mk
blob: 7312a98ea1db30d03e84da4864855369a414d712 (plain)
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
# Linux I2C header files
#
# Copyright (C) 2007  Jean Delvare <khali@linux-fr.org>
#
# Licensed under the GNU General Public License.

INCLUDE_DIR	:= include

INCLUDE_TARGETS	:= linux/i2c-dev.h

#
# Commands
#

install-include: $(addprefix $(INCLUDE_DIR)/,$(INCLUDE_TARGETS))
	$(INSTALL_DIR) $(DESTDIR)$(incdir)/linux
	for file in $(INCLUDE_TARGETS) ; do \
	$(INSTALL_DATA) $(INCLUDE_DIR)/$$file $(DESTDIR)$(incdir)/$$file ; done

uninstall-include:
	for file in $(INCLUDE_TARGETS) ; do \
	$(RM) $(DESTDIR)$(incdir)/$$file ; done

install: install-include

uninstall: uninstall-include