Remove message 'unprotectsub', unused since ages
[lhc/web/wiklou.git] / maintenance / Makefile
index 8cdb03f..e84cfdf 100644 (file)
@@ -1,13 +1,17 @@
-.PHONY: help doc test
+mediawiki_version := $(shell  php -r "include('commandLine.inc'); print SpecialVersion::getVersion();")
+
 help:
-       # Run 'make test' to run the parser tests.
-       # Run 'make doc' to run the phpdoc generation.
+       @echo "Run 'make test' to run the parser tests."
+       @echo "Run 'make doc' to run the phpdoc generation."
+       @echo "Run 'make doxydoc' (unsupported doxygen generation)."
 
 test:
-       php parserTests.php
-
-test-light:
-       php parserTests.php --color=light
+       php parserTests.php --quiet
 
 doc:
-       php mwdocgen.php --all
+       php mwdocgen.php -all
+       echo 'Doc generation done. Look at ./docs/html/'
+
+doxydoc:
+       cd .. && /bin/sed -e "s/MW_VERSION_PLACEHOLDER/$(mediawiki_version)/" maintenance/mwdoxygen.cfg | doxygen -
+       echo 'Doc generation done. Look at ./docs/html/'