summaryrefslogtreecommitdiff
path: root/maintenance/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/Makefile')
-rw-r--r--maintenance/Makefile17
1 files changed, 7 insertions, 10 deletions
diff --git a/maintenance/Makefile b/maintenance/Makefile
index 97f8b60b..e84cfdf3 100644
--- a/maintenance/Makefile
+++ b/maintenance/Makefile
@@ -1,20 +1,17 @@
-.PHONY: help test test-light
+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.
- # Run 'make doxydoc' (unsupported doxygen 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
echo 'Doc generation done. Look at ./docs/html/'
doxydoc:
- cd .. && doxygen maintenance/mwdoxygen.cfg
+ cd .. && /bin/sed -e "s/MW_VERSION_PLACEHOLDER/$(mediawiki_version)/" maintenance/mwdoxygen.cfg | doxygen -
echo 'Doc generation done. Look at ./docs/html/'
-