summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 \