mirror of https://gitee.com/bigwinds/arangodb
added optional install of db dir
This commit is contained in:
parent
6bd048fcd1
commit
235c03ce5f
|
@ -45,8 +45,10 @@ nobase_pkgdata_DATA = \
|
|||
$(shell find @srcdir@/html -name "*.js" -print) \
|
||||
$(shell find @srcdir@/html -name "*.png" -print)
|
||||
|
||||
if ENABLE_INSTALL_DBDIR
|
||||
install-data-local:
|
||||
test -d @localstatedir@/${PACKAGE_TARNAME} || mkdir -p @localstatedir@/${PACKAGE_TARNAME}
|
||||
endif
|
||||
|
||||
################################################################################
|
||||
## avocadodb
|
||||
|
|
|
@ -2124,6 +2124,7 @@ maintainer-clean-generic:
|
|||
@echo "This command is intended for maintainers to use"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
-test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
|
||||
@ENABLE_INSTALL_DBDIR_FALSE@install-data-local:
|
||||
clean: clean-am
|
||||
|
||||
clean-am: clean-generic clean-local clean-sbinPROGRAMS mostlyclean-am
|
||||
|
@ -2217,8 +2218,8 @@ uninstall-am: uninstall-nobase_pkgdataDATA uninstall-sbinPROGRAMS
|
|||
uninstall-sbinPROGRAMS
|
||||
|
||||
|
||||
install-data-local:
|
||||
test -d @localstatedir@//${PACKAGE_TARNAME} || mkdir -p @localstatedir@//${PACKAGE_TARNAME}
|
||||
@ENABLE_INSTALL_DBDIR_TRUE@install-data-local:
|
||||
@ENABLE_INSTALL_DBDIR_TRUE@ test -d @localstatedir@/${PACKAGE_TARNAME} || mkdir -p @localstatedir@/${PACKAGE_TARNAME}
|
||||
|
||||
.PHONY: Doxygen/js Doxygen/js/system Doxygen/js/modules
|
||||
|
||||
|
|
|
@ -727,6 +727,8 @@ build_os
|
|||
build_vendor
|
||||
build_cpu
|
||||
build
|
||||
ENABLE_INSTALL_DBDIR_FALSE
|
||||
ENABLE_INSTALL_DBDIR_TRUE
|
||||
ENABLE_RELATIVE_FALSE
|
||||
ENABLE_RELATIVE_TRUE
|
||||
ENABLE_ALL_IN_ONE_FALSE
|
||||
|
@ -780,6 +782,7 @@ enable_bison
|
|||
enable_flex
|
||||
enable_all_in_one
|
||||
enable_relative
|
||||
enable_install_dbdir
|
||||
enable_silent_rules
|
||||
enable_dependency_tracking
|
||||
enable_error_on_warning
|
||||
|
@ -1450,6 +1453,7 @@ Optional Features:
|
|||
--enable-flex enable FLEX
|
||||
--enable-all-in-one enable supplied V8, BOOST, LIBEV
|
||||
--enable-relative all path are relative to the binary
|
||||
--enable-install-dbdir install an empty database directory
|
||||
--enable-silent-rules less verbose build output (undo: `make V=1')
|
||||
--disable-silent-rules verbose build output (undo: `make V=0')
|
||||
--disable-dependency-tracking speeds up one-time build
|
||||
|
@ -2597,6 +2601,24 @@ else
|
|||
fi
|
||||
|
||||
|
||||
# Check whether --enable-install-dbdir was given.
|
||||
if test "${enable_install_dbdir+set}" = set; then :
|
||||
enableval=$enable_install_dbdir; tr_RELATIVE="${enableval:-yes}"
|
||||
else
|
||||
tr_RELATIVE=yes
|
||||
|
||||
fi
|
||||
|
||||
|
||||
if test "x$tr_DBDIR" = xyes; then
|
||||
ENABLE_INSTALL_DBDIR_TRUE=
|
||||
ENABLE_INSTALL_DBDIR_FALSE='#'
|
||||
else
|
||||
ENABLE_INSTALL_DBDIR_TRUE='#'
|
||||
ENABLE_INSTALL_DBDIR_FALSE=
|
||||
fi
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -9288,6 +9310,10 @@ if test -z "${ENABLE_RELATIVE_TRUE}" && test -z "${ENABLE_RELATIVE_FALSE}"; then
|
|||
as_fn_error $? "conditional \"ENABLE_RELATIVE\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
fi
|
||||
if test -z "${ENABLE_INSTALL_DBDIR_TRUE}" && test -z "${ENABLE_INSTALL_DBDIR_FALSE}"; then
|
||||
as_fn_error $? "conditional \"ENABLE_INSTALL_DBDIR\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
fi
|
||||
if test -z "${ENABLE_DARWIN_TRUE}" && test -z "${ENABLE_DARWIN_FALSE}"; then
|
||||
as_fn_error $? "conditional \"ENABLE_DARWIN\" was never defined.
|
||||
Usually this means the macro was only invoked conditionally." "$LINENO" 5
|
||||
|
|
|
@ -55,6 +55,14 @@ fi
|
|||
|
||||
AM_CONDITIONAL(ENABLE_RELATIVE, test "x$tr_RELATIVE" = xyes)
|
||||
|
||||
AC_ARG_ENABLE(install-dbdir,
|
||||
AS_HELP_STRING([--enable-install-dbdir], [install an empty database directory]),
|
||||
[tr_RELATIVE="${enableval:-yes}"],
|
||||
[tr_RELATIVE=yes]
|
||||
)
|
||||
|
||||
AM_CONDITIONAL(ENABLE_INSTALL_DBDIR, test "x$tr_DBDIR" = xyes)
|
||||
|
||||
dnl ============================================================================
|
||||
dnl CHECKS HOST, PROGRAMS, COMPILER, LIB, SYSTEM
|
||||
dnl ============================================================================
|
||||
|
|
Loading…
Reference in New Issue