]> Lady’s Gitweb - Gitweb/blobdiff - Makefile
gitweb/Makefile: Add 'test' and 'test-installed' targets
[Gitweb] / Makefile
index 2f6b8f5bf900fb5fd6d535867099878861dd0e671539fe2a2905a633cdacab7f..3eb5f5571ef34cfcb9dd1ce9d696ca44068cd7df91084406e73484c0db4efb35 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -145,6 +145,15 @@ gitweb.cgi: gitweb.perl GITWEB-BUILD-OPTIONS
        chmod +x $@+ && \
        mv $@+ $@
 
        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
 ### Installation rules
 
 install: all
@@ -158,5 +167,5 @@ install: all
 clean:
        $(RM) gitweb.cgi static/gitweb.min.js static/gitweb.min.css GITWEB-BUILD-OPTIONS
 
 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
 
 
This page took 0.176622 seconds and 4 git commands to generate.