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@
SBINDIR = @SBINDIR@
MANDIR = @MANDIR@
all::
@(cd executer/kernel; make modules)
@@ -30,6 +31,8 @@ install::
mkdir -p -m 755 $(SBINDIR); \
install -m 755 arch/x86/tools/mcreboot-attached-mic.sh $(SBINDIR)/mcreboot; \
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
clean::

11
configure vendored
View File

@@ -590,6 +590,7 @@ IHK_RELEASE_DATE
DCFA_VERSION
MCKERNEL_VERSION
IHK_VERSION
MANDIR
KERNDIR
KMODDIR
SBINDIR
@@ -2612,6 +2613,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test "X$KMODDIR" = X; then
KMODDIR="$prefix/kmod"
fi
if test "X$MANDIR" = X; then
MANDIR="$prefix/man"
fi
;;
builtin-mic)
ARCH=k1om
@@ -2666,6 +2670,9 @@ fi
if test "X$KMODDIR" = X; then
KMODDIR="$prefix/attached/kmod"
fi
if test "X$MANDIR" = X; then
MANDIR="$prefix/attached/man"
fi
;;
builtin-x86)
ARCH=`uname -m`
@@ -3221,6 +3228,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
if test "X$KMODDIR" = X; then
KMODDIR="$prefix/kmod"
fi
if test "X$MANDIR" = X; then
MANDIR="$prefix/attached/man"
fi
;;
*)
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"

View File

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