forked from chaosarium/lwt
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
42 lines (34 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Files to generate info.html
ONE_FILE_DOC = docs/info.php docs/CHANGELOG.md docs/database.md
install: composer.phar
php composer.phar install
# Regenerate one-file documentation
info.html: $(ONE_FILE_DOC)
echo "Regenerating info.html"
php docs/info.php > docs/info.html
# Regenerate all documentation
doc: $(ONE_FILE_DOC) Doxyfile
php docs/info.php > docs/info.html
doxygen Doxyfile
./node_modules/.bin/jsdoc -c jsdoc.json
php tools/phpDocumentor
# Regenerate code documentation
code_doc: Doxyfile
echo "Regenerating documentation"
doxygen Doxyfile
# Regenerate minified JS & CSS (including themes)
minify: src/js/ src/css/ src/themes/
php -r "require 'src/php/minifier.php'; minify_everything();"
# Do not minify for development version!
no-minify: src/js/ src/css/ src/themes/
rm js/pgm.js
cat src/js/third_party/* >> js/pgm.js
cat src/js/*.js >> js/pgm.js
cp -r src/css .
cp -r src/themes .
# Clear documentation
clean-doc:
rm docs/info.html
rm -rf docs/html
# Clear documentation, deprecated, use clean-doc instead
clean: clean-doc