From 2a55f3d71852501d15a09e1d61f8ad0d6a1c08df Mon Sep 17 00:00:00 2001 From: Tomoki Shirasawa Date: Wed, 8 Jan 2014 17:13:49 +0900 Subject: [PATCH] install manual --- Makefile.in | 3 +++ configure | 11 +++++++++++ configure.ac | 10 ++++++++++ 3 files changed, 24 insertions(+) diff --git a/Makefile.in b/Makefile.in index 69427ff5..db6b5bb9 100755 --- a/Makefile.in +++ b/Makefile.in @@ -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:: diff --git a/configure b/configure index 3e2f7121..c32b6506 100755 --- a/configure +++ b/configure @@ -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" diff --git a/configure.ac b/configure.ac index c70bf816..32d9aeaa 100644 --- a/configure.ac +++ b/configure.ac @@ -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)