forked from phpbrew/phpbrew
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
64 lines (53 loc) · 1.51 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
OUTPUT = phpbrew.phar
TARGET = phpbrew
MOVE = mv
SUDOCP = sudo cp
INSTALL_PATH = /usr/local/bin
PERMISSION = chmod +x
TEST = phpunit
default:
php bin/phpbrew compile \
--lib src \
--lib vendor/corneltek/cliframework/src \
--lib vendor/pimple/pimple/src \
--lib vendor/corneltek/pearx/src \
--lib vendor/corneltek/getoptionkit/src \
--lib vendor/corneltek/curlkit/src \
--lib vendor/corneltek/universal/src \
--lib vendor/symfony/process \
--lib vendor/symfony/yaml \
--lib shell \
--exclude Tests/ \
--exclude CHANGELOG\|README \
--exclude phpunit.xml \
--classloader \
--bootstrap scripts/phpbrew-emb.php \
--executable \
--no-compress \
--output $(OUTPUT)
$(MOVE) $(OUTPUT) $(TARGET)
$(PERMISSION) $(TARGET)
install:
$(SUDOCP) $(TARGET) $(INSTALL_PATH)
update:
composer update
update/topics:
php bin/phpbrew github:build-topics --dir src phpbrew phpbrew
update/completion:
bin/phpbrew zsh --bind phpbrew --program phpbrew > completion/zsh/_phpbrew
bin/phpbrew bash --bind phpbrew --program phpbrew > completion/bash/_phpbrew
test:
$(TEST)
test/quick:
$(TEST) --group small
test/extension:
$(TEST) --group extension
test/extension-installer:
php bin/phpbrew --debug ext install openssl
php bin/phpbrew --debug ext install opcache
php bin/phpbrew --debug ext install xdebug
php bin/phpbrew --debug ext install soap
test/see-coverage:
xdg-open build/logs/coverage/index.html
clean:
git checkout -- $(TARGET)