forked from xdebug/xdebug
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.frag
51 lines (44 loc) · 2.61 KB
/
Makefile.frag
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
48
49
50
51
install: $(all_targets) $(install_targets) show-install-instructions
show-install-instructions:
@echo
@$(top_srcdir)/build/shtool echo -n -e %B
@echo " +----------------------------------------------------------------------+"
@echo " | |"
@echo " | INSTALLATION INSTRUCTIONS |"
@echo " | ========================= |"
@echo " | |"
@echo " | See https://xdebug.org/install.php#configure-php for instructions |"
@echo " | on how to enable Xdebug for PHP. |"
@echo " | |"
@echo " | Documentation is available online as well: |"
@echo " | - A list of all settings: https://xdebug.org/docs-settings.php |"
@echo " | - A list of all functions: https://xdebug.org/docs-functions.php |"
@echo " | - Profiling instructions: https://xdebug.org/docs-profiling2.php |"
@echo " | - Remote debugging: https://xdebug.org/docs-debugger.php |"
@echo " | |"
@echo " | |"
@echo " | NOTE: Please disregard the message |"
@echo " | You should add \"extension=xdebug.so\" to php.ini |"
@echo " | that is emitted by the PECL installer. This does not work for |"
@echo " | Xdebug. |"
@echo " | |"
@echo " +----------------------------------------------------------------------+"
@$(top_srcdir)/build/shtool echo -n -e %b
@echo
@echo
findphp:
@echo $(PHP_EXECUTABLE)
clean-tests:
rm -f tests/*.diff tests/*.exp tests/*.log tests/*.out tests/*.php tests/*.sh tests/*.mem
test:
@echo "Xdebug can not be tested with 'make test', please refer to:"
@echo " https://github.com/xdebug/xdebug#testing"
@echo
test-coverage:
$(MAKE) clean
CCACHE_DISABLE=1 EXTRA_CFLAGS=--coverage $(MAKE) all
TEST_PHP_ARGS="-n -d zend_extension=$(top_srcdir)/.libs/xdebug.so" php run-xdebug-tests.php
test-coverage-lcov: test-coverage
lcov -c --directory . --output-file $(top_srcdir)/.coverage.lcov
test-coverage-html: test-coverage-lcov
genhtml $(top_srcdir)/.coverage.lcov --output-directory=/tmp/html