forked from jelix/jelix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (40 loc) · 1.27 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
43
44
45
46
47
SHELL=/bin/sh
ifdef PHPPATH
PHP=$(PHPPATH)
else
PHP=/usr/bin/php
endif
CURRENT_PATH = $(shell pwd)
ifdef DISTPATH
DISTPATHSWITCH="MAIN_TARGET_PATH=$(DISTPATH)"
else
DISTPATH=_dist
DISTPATHSWITCH="MAIN_TARGET_PATH=_dist"
endif
ifndef DOCSPATH
DOCSPATH=_docs
endif
ifndef PHPDOC
PHPDOC=../../phpdoc/
endif
default:
@echo "target:"
@echo " nightlies : "
@echo " générations des packages des nightly build"
@echo " docs : "
@echo " Génération de la doc"
nightlies:
composer install --prefer-dist --no-ansi --no-interaction --ignore-platform-reqs
$(PHP) build/buildjelix.php -D $(DISTPATHSWITCH) ./build/config/jelix-dist-dev.ini
mv $(DISTPATH)/PACKAGE_NAME $(DISTPATH)/PACKAGE_NAME_DEV
$(PHP) build/buildjelix.php -D $(DISTPATHSWITCH) ./build/config/jelix-dist-opt.ini
mv $(DISTPATH)/PACKAGE_NAME $(DISTPATH)/PACKAGE_NAME_OPT
docs:
$(PHP) build/buildjelix.php -D $(TESTPATHSWITCH) ./build/config/jelix-test.ini
# cp -R -f build/phpdoc/Converters/HTML/frames $(PHPDOC)phpDocumentor/Converters/HTML/
$(PHPDOC)phpdoc \
-d $(TESTPATH)/lib/jelix-legacy/ \
-t $(DOCSPATH) \
-o "HTML:frames:DOM/jelix" -s on -ct "contributor,licence" -i *.ini.php \
-ti "Jelix API Reference" -ric "README,INSTALL,CHANGELOG,CREDITS,LICENCE,VERSION,BUILD"
# -tb $(CURRENT_PATH)/build/phpdoc/