[PATCH 2/2] Makefile export libraries headers
Mike Frysinger
vapier.adi at gmail.com
Thu Dec 18 15:25:41 EST 2008
On Thu, Dec 18, 2008 at 09:16, Sidney Amani wrote:
> >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
you're installing headers into /usr/lib/ ? that doesnt make any sense ...
-mike
More information about the linux-mtd
mailing list