[PATCH 2/2] Makefile export libraries headers

Sidney Amani amani_s at epitech.net
Thu Dec 18 09:16:53 EST 2008


>From 9d61143fdeb85b0239bd8e755114c50a45a151ef Mon Sep 17 00:00:00 2001
From: Sidney Amani <amani_s at epitech.net>
Date: Wed, 17 Dec 2008 12:50:54 +0100
Subject: [PATCH] Makefile export libraries headers

Export headers, if we want to use the previoulsy exported
shared libraries we will need them.

Signed-off-by: Sidney Amani <amani_s at epitech.net>
Signed-off-by: Corentin Chary <chary_c at epitech.net>
---
 ubi-utils/new-utils/Makefile |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/ubi-utils/new-utils/Makefile b/ubi-utils/new-utils/Makefile
index a975a99..560e391 100644
--- a/ubi-utils/new-utils/Makefile
+++ b/ubi-utils/new-utils/Makefile
@@ -6,7 +6,7 @@ KERNELHDR := ../../include
 DESTDIR := /usr/local
 SBINDIR=/usr/sbin
 MANDIR=/usr/man
-INCLUDEDIR=/usr/include
+INCLUDEDIR=/include
 LIBDIR=/lib

 CC := $(CROSS)gcc
@@ -74,6 +74,9 @@ clean:
 install: ${UTILS}
 	mkdir -p ${DESTDIR}/${SBINDIR}
 	install -m 0755 ${UTILS} ${DESTDIR}/${SBINDIR}/
+	for i in $(addsuffix .h, $(LIBS)); do \
+		[ -f include/$$i ] &&  install -m 0755 include/$$i  ${DESTDIR}/${LIBDIR}/; \
+	done
 	for i in $(addsuffix .so, $(LIBS)); do \
 		[ -f $$i ] &&  install -m 0755 $$i  ${DESTDIR}/${LIBDIR}/; \
 	done
-- 
1.5.6.4



More information about the linux-mtd mailing list