summaryrefslogtreecommitdiff
path: root/gitweb/Makefile
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2010-11-17 22:59:22 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-11-17 22:59:22 (GMT)
commit430fac9e5bdf24a2969f854ff0ff376140f88090 (patch)
tree97af5770aa6afef8fc1739ca5496b1c3ca6ce869 /gitweb/Makefile
parent8cf666c9eea7d6c40784efde545c9d00edea1959 (diff)
parent9b93aeb29cea16880926bc150ac31cfb31475a44 (diff)
downloadgit-430fac9e5bdf24a2969f854ff0ff376140f88090.zip
git-430fac9e5bdf24a2969f854ff0ff376140f88090.tar.gz
git-430fac9e5bdf24a2969f854ff0ff376140f88090.tar.bz2
Merge branch 'jn/gitweb-test'
* jn/gitweb-test: gitweb/Makefile: Include gitweb/config.mak gitweb/Makefile: Add 'test' and 'test-installed' targets t/gitweb-lib.sh: Add support for GITWEB_TEST_INSTALLED gitweb: Move call to evaluate_git_version after evaluate_gitweb_config
Diffstat (limited to 'gitweb/Makefile')
-rw-r--r--gitweb/Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/gitweb/Makefile b/gitweb/Makefile
index e32ee76..0a6ac00 100644
--- a/gitweb/Makefile
+++ b/gitweb/Makefile
@@ -40,6 +40,7 @@ HIGHLIGHT_BIN = highlight
# include user config
-include ../config.mak.autogen
-include ../config.mak
+-include config.mak
# determine version
../GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
@@ -145,6 +146,15 @@ gitweb.cgi: gitweb.perl GITWEB-BUILD-OPTIONS
chmod +x $@+ && \
mv $@+ $@
+### Testing rules
+
+test:
+ $(MAKE) -C ../t gitweb-test
+
+test-installed:
+ GITWEB_TEST_INSTALLED='$(DESTDIR_SQ)$(gitwebdir_SQ)' \
+ $(MAKE) -C ../t gitweb-test
+
### Installation rules
install: all
@@ -158,5 +168,5 @@ install: all
clean:
$(RM) gitweb.cgi static/gitweb.min.js static/gitweb.min.css GITWEB-BUILD-OPTIONS
-.PHONY: all clean install .FORCE-GIT-VERSION-FILE FORCE
+.PHONY: all clean install test test-installed .FORCE-GIT-VERSION-FILE FORCE