diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2011-09-28 23:32:22 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2011-09-28 23:32:22 +0200 |
commit | a0d01155dc7b2774435721aa319625c9c42d9e59 (patch) | |
tree | dcbdcfc88ce73956ccd2790c805c5713d318a762 | |
parent | 109efdb60386dbabd451162f3f3145a1eaf47f5e (diff) | |
download | smokeping-a0d01155dc7b2774435721aa319625c9c42d9e59.tar.gz smokeping-a0d01155dc7b2774435721aa319625c9c42d9e59.tar.xz |
make install destination configurable
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | htdocs/Makefile.am | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 888da27..0807b97 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,9 @@ AC_ARG_ENABLE(pkgonly, [Skip all checking])]) AC_SUBST(enable_pkgonly) +HTDOCSDIR=${prefix}/htdocs +AC_ARG_WITH(htdocs-dir,[ --with-htdocs-dir=[DIR] Where to install htdocs [PREFIX/htdocs]], [HTDOCSDIR=$withval]) +AC_SUBST(HTDOCSDIR) PERLLIBDIRS= diff --git a/htdocs/Makefile.am b/htdocs/Makefile.am index b402eec..11b69e7 100644 --- a/htdocs/Makefile.am +++ b/htdocs/Makefile.am @@ -25,7 +25,7 @@ CGI = smokeping.fcgi.dist smokeping.cgi.dist EXTRA_DIST = $(JS) $(CGI) -jsdir = $(DESTDIR)$(prefix)/htdocs +jsdir = $(DESTDIR)$(HTDOCSDIR) nobase_js_DATA = $(JS) js_SCRIPTS = $(CGI) |