forked from getopt-php/getopt-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (23 loc) · 978 Bytes
/
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
# vim: tabstop=4:softtabstop=4:shiftwidth=4:noexpandtab
help:
@echo "Usual targets:"
@echo " test - run test suites"
@echo ""
@echo "Other targets:"
@echo " install-composer - install composer"
@echo " install-dependencies - install/update all vendor libraries using composer"
@echo " install-dev-dependencies - install/update all vendor libraries necessary for development"
@echo ""
@exit 0
test:
@vendor/bin/phpunit
install-composer:
@if [ ! -d ./bin ]; then mkdir bin; fi
@if [ ! -f ./bin/composer.phar ]; then curl -s http://getcomposer.org/installer | php -n -d allow_url_fopen=1 -d date.timezone="Europe/Berlin" -- --install-dir=./bin/; fi
install-dependencies:
@make install-composer
@php -n -d allow_url_fopen=1 -d date.timezone="Europe/Berlin" ./bin/composer.phar -- update
install-dev-dependencies:
@make install-composer
@php -n -d allow_url_fopen=1 -d date.timezone="Europe/Berlin" ./bin/composer.phar update --dev
.PHONY: test help