aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-08-29 18:06:45 +0300
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2007-08-29 18:06:45 +0300
commit3f171e39e8c17d673fc9dea3364857c7e611c626 (patch)
tree2b41f891413f98efda943e01302e6f132a796593
parent1e8903a0bd3fdddd5ce6bfdeaed49249fc6ab9b5 (diff)
ubi-utils: add utils to make install
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
-rw-r--r--Makefile1
-rw-r--r--ubi-utils/Makefile4
2 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 111bb6a..503021c 100644
--- a/Makefile
+++ b/Makefile
@@ -92,3 +92,4 @@ install: ${TARGETS}
install -m0755 ${TARGETS} ${DESTDIR}/${SBINDIR}/
mkdir -p ${DESTDIR}/${MANDIR}/man1
gzip -c mkfs.jffs2.1 > ${DESTDIR}/${MANDIR}/man1/mkfs.jffs2.1.gz
+ make -C $(BUILDDIR)/ubi-utils install
diff --git a/ubi-utils/Makefile b/ubi-utils/Makefile
index bef8227..db984c8 100644
--- a/ubi-utils/Makefile
+++ b/ubi-utils/Makefile
@@ -10,7 +10,9 @@ BUILD_OS := $(shell uname -o)
OPTFLAGS := -O2 -g -Wall
KERNELHDR := ../include
DESTDIR := /usr/local
-SBINDIR := bin
+SBINDIR=/usr/sbin
+MANDIR=/usr/man
+INCLUDEDIR=/usr/include
CC := $(CROSS)gcc
CFLAGS := -I./inc -I./src -I$(KERNELHDR) $(OPTFLAGS) -Werror \