mirror of
https://github.com/git/git.git
synced 2026-06-30 19:58:12 +00:00
gitweb/Makefile: Add 'test' and 'test-installed' targets
The 'test-installed' target in gitweb/Makefile tests installed gitweb, using the same destination directory that 'install' target uses. The 'test' target is just a convenience wrapper invoking 'gitweb-test' target of t/Makefile. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
9299093750
commit
958a846721
@@ -143,6 +143,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
|
||||
@@ -156,5 +165,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user