-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
39 lines (32 loc) · 857 Bytes
/
Makefile
File metadata and controls
39 lines (32 loc) · 857 Bytes
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
#
# Litmus Customer API Implementation Makefile
# use make help to get the targets
# Binary
PHP = php
PHPUNIT = phpunit
PHPDOC = phpdoc
# Path
ROOT = .
PROJECT_LIB_PATH = ${ROOT}/library
PROJECT_TEST_PATH = ${ROOT}/tests
PROJECT_DOC_PATH = ${ROOT}/doc
# Display an help message
all: help
help:
@echo "Makefile usage:"
@echo "\nmake doc"
@echo "\tTo generate the phpDoc documentation using the doc/phpDocumentor.ini config file"
@echo "\nmake unit-test"
@echo "\t To execute the phpUnitTest using the tests/phpunit.xml config file"
# Generate the doc
doc:
@echo "Generate phpDoc documentation :"
@${PHPDOC} -c ${PROJECT_DOC_PATH}/phpDocumentor.ini
@echo "done"
# Exec PHP unitTest
unit-test:
@echo "----------------"
@echo "Exec PHPUnits test:"
@cd ${PROJECT_TEST_PATH} && ${PHPUNIT} --configuration phpunit.xml
@echo "done"
.PHONY: doc