diff options
author | Max Romanov <max.romanov@nginx.com> | 2017-08-31 11:42:13 -0700 |
---|---|---|
committer | Max Romanov <max.romanov@nginx.com> | 2017-08-31 11:42:13 -0700 |
commit | ac7218e335f0393330cf3d1c791ccdfa5a04c423 (patch) | |
tree | 1e864fe75f90fbb2a3d5796deabfe056f6e0537d /auto/options | |
parent | 6eb4a41364bedc461a58ebe486067ae3abc9aaa1 (diff) | |
download | unit-ac7218e335f0393330cf3d1c791ccdfa5a04c423.tar.gz unit-ac7218e335f0393330cf3d1c791ccdfa5a04c423.tar.bz2 |
Introducing install & uninstall Makefile targets.
Diffstat (limited to 'auto/options')
-rw-r--r-- | auto/options | 31 |
1 files changed, 22 insertions, 9 deletions
diff --git a/auto/options b/auto/options index 19cd3dee..fe11f35f 100644 --- a/auto/options +++ b/auto/options @@ -55,9 +55,12 @@ do --build-dir=*) NXT_BUILD_DIR="$value" ;; --prefix=*) NXT_PREFIX="$value" ;; + --bindir=*) NXT_BINDIR="$value" ;; + --sbindir=*) NXT_SBINDIR="$value" ;; + --modules=*) NXT_MODULES="$value" ;; + --pid=*) NXT_PID="$value" ;; --log=*) NXT_LOG="$value" ;; - --modules=*) NXT_MODULES="$value" ;; --control=*) NXT_CONTROL="$value" ;; @@ -91,6 +94,11 @@ do --tests) NXT_TESTS=YES ;; + --help) + . auto/help + exit 0 + ;; + *) $echo $echo $0: error: invalid option \"$nxt_option\". @@ -112,24 +120,29 @@ case "$NXT_PREFIX" in *) NXT_PREFIX="$NXT_PREFIX/" ;; esac -case "$NXT_PID" in +case "$NXT_BINDIR" in /*) ;; - *) NXT_PID="$NXT_PREFIX$NXT_PID" ;; + *) NXT_BINDIR="$NXT_PREFIX$NXT_BINDIR" ;; esac -case "$NXT_LOG" in +case "$NXT_SBINDIR" in /*) ;; - *) NXT_LOG="$NXT_PREFIX$NXT_LOG" ;; + *) NXT_SBINDIR="$NXT_PREFIX$NXT_SBINDIR" ;; esac case "$NXT_MODULES" in - ""|*/) ;; - *) NXT_MODULES="$NXT_MODULES/" ;; + /*) ;; + *) NXT_MODULES="$NXT_PREFIX$NXT_MODULES" ;; esac -case "$NXT_MODULES" in +case "$NXT_PID" in /*) ;; - *) NXT_MODULES="$NXT_PREFIX$NXT_MODULES" ;; + *) NXT_PID="$NXT_PREFIX$NXT_PID" ;; +esac + +case "$NXT_LOG" in + /*) ;; + *) NXT_LOG="$NXT_PREFIX$NXT_LOG" ;; esac case "$NXT_CONTROL" in |