install manual

This commit is contained in:
Tomoki Shirasawa
2014-01-08 17:13:49 +09:00
parent 0465cc16b9
commit 2a55f3d718
3 changed files with 24 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
TARGET = @TARGET@ TARGET = @TARGET@
SBINDIR = @SBINDIR@ SBINDIR = @SBINDIR@
MANDIR = @MANDIR@
all:: all::
@(cd executer/kernel; make modules) @(cd executer/kernel; make modules)
@@ -30,6 +31,8 @@ install::
mkdir -p -m 755 $(SBINDIR); \ mkdir -p -m 755 $(SBINDIR); \
install -m 755 arch/x86/tools/mcreboot-attached-mic.sh $(SBINDIR)/mcreboot; \ install -m 755 arch/x86/tools/mcreboot-attached-mic.sh $(SBINDIR)/mcreboot; \
install -m 755 arch/x86/tools/mcshutdown-attached-mic.sh $(SBINDIR)/mcshutdown; \ install -m 755 arch/x86/tools/mcshutdown-attached-mic.sh $(SBINDIR)/mcshutdown; \
mkdir -p -m 755 $(MANDIR)/man1; \
install -m 644 arch/x86/tools/mcreboot.1 $(MANDIR)/man1/mcreboot.1; \
fi fi
clean:: clean::

11
configure vendored
View File

@@ -590,6 +590,7 @@ IHK_RELEASE_DATE
DCFA_VERSION DCFA_VERSION
MCKERNEL_VERSION MCKERNEL_VERSION
IHK_VERSION IHK_VERSION
MANDIR
KERNDIR KERNDIR
KMODDIR KMODDIR
SBINDIR SBINDIR
@@ -2612,6 +2613,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test "X$KMODDIR" = X; then if test "X$KMODDIR" = X; then
KMODDIR="$prefix/kmod" KMODDIR="$prefix/kmod"
fi fi
if test "X$MANDIR" = X; then
MANDIR="$prefix/man"
fi
;; ;;
builtin-mic) builtin-mic)
ARCH=k1om ARCH=k1om
@@ -2666,6 +2670,9 @@ fi
if test "X$KMODDIR" = X; then if test "X$KMODDIR" = X; then
KMODDIR="$prefix/attached/kmod" KMODDIR="$prefix/attached/kmod"
fi fi
if test "X$MANDIR" = X; then
MANDIR="$prefix/attached/man"
fi
;; ;;
builtin-x86) builtin-x86)
ARCH=`uname -m` ARCH=`uname -m`
@@ -3221,6 +3228,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test "X$KMODDIR" = X; then if test "X$KMODDIR" = X; then
KMODDIR="$prefix/kmod" KMODDIR="$prefix/kmod"
fi fi
if test "X$MANDIR" = X; then
MANDIR="$prefix/attached/man"
fi
;; ;;
*) *)
as_fn_error $? "target $WITH_TARGET is unknwon" "$LINENO" 5 as_fn_error $? "target $WITH_TARGET is unknwon" "$LINENO" 5
@@ -3247,6 +3257,7 @@ TARGET="$WITH_TARGET"
ac_config_files="$ac_config_files Makefile executer/user/Makefile executer/kernel/Makefile kernel/Makefile arch/x86/tools/mcreboot-attached-mic.sh arch/x86/tools/mcshutdown-attached-mic.sh arch/x86/tools/mcreboot.1:arch/x86/tools/mcreboot.1in" ac_config_files="$ac_config_files Makefile executer/user/Makefile executer/kernel/Makefile kernel/Makefile arch/x86/tools/mcreboot-attached-mic.sh arch/x86/tools/mcshutdown-attached-mic.sh arch/x86/tools/mcreboot.1:arch/x86/tools/mcreboot.1in"

View File

@@ -64,6 +64,9 @@ case $WITH_TARGET in
if test "X$KMODDIR" = X; then if test "X$KMODDIR" = X; then
KMODDIR="$prefix/kmod" KMODDIR="$prefix/kmod"
fi fi
if test "X$MANDIR" = X; then
MANDIR="$prefix/man"
fi
;; ;;
builtin-mic) builtin-mic)
ARCH=k1om ARCH=k1om
@@ -84,6 +87,9 @@ case $WITH_TARGET in
if test "X$KMODDIR" = X; then if test "X$KMODDIR" = X; then
KMODDIR="$prefix/attached/kmod" KMODDIR="$prefix/attached/kmod"
fi fi
if test "X$MANDIR" = X; then
MANDIR="$prefix/attached/man"
fi
;; ;;
builtin-x86) builtin-x86)
ARCH=`uname -m` ARCH=`uname -m`
@@ -101,6 +107,9 @@ case $WITH_TARGET in
if test "X$KMODDIR" = X; then if test "X$KMODDIR" = X; then
KMODDIR="$prefix/kmod" KMODDIR="$prefix/kmod"
fi fi
if test "X$MANDIR" = X; then
MANDIR="$prefix/attached/man"
fi
;; ;;
*) *)
AC_MSG_ERROR([target $WITH_TARGET is unknwon]) AC_MSG_ERROR([target $WITH_TARGET is unknwon])
@@ -119,6 +128,7 @@ AC_SUBST(BINDIR)
AC_SUBST(SBINDIR) AC_SUBST(SBINDIR)
AC_SUBST(KMODDIR) AC_SUBST(KMODDIR)
AC_SUBST(KERNDIR) AC_SUBST(KERNDIR)
AC_SUBST(MANDIR)
AC_SUBST(IHK_VERSION) AC_SUBST(IHK_VERSION)
AC_SUBST(MCKERNEL_VERSION) AC_SUBST(MCKERNEL_VERSION)