-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (20 loc) · 725 Bytes
/
Makefile
File metadata and controls
30 lines (20 loc) · 725 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
.PHONY: run-tests recent-composer install-vendor update-vendor clean
install-vendor: recent-composer
bin/composer.phar install
vendor/autoload.php: recent-composer
bin/composer.phar install
run-tests: vendor/autoload.php
vendor/phpunit/phpunit/phpunit.php
update-vendor: recent-composer
bin/composer.phar update
clean:
rm -fR bin/composer.phar vendor
recent-composer: bin/composer.phar
if bin/composer.phar about | grep -q "This development build of composer is over 30 days old"; then \
bin/composer.phar self-update; \
fi
bin/composer.phar:
mkdir -p bin
wget -O bin/composer.phar.partial http://getcomposer.org/composer.phar
mv bin/composer.phar.partial bin/composer.phar
chmod a+x bin/composer.phar