forked from twilio/twilio-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (33 loc) · 890 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
35
36
37
38
39
40
# Twilio API helper library.
# See LICENSE file for copyright and license details.
define LICENSE
<?php
/**
* Twilio API helper library.
*
* @category Services
* @package Services_Twilio
* @author Neuman Vong <[email protected]>
* @license http://creativecommons.org/licenses/MIT/ MIT
* @link http://pear.php.net/package/Services_Twilio
*/
endef
export LICENSE
all: test
clean:
@rm -rf dist
PHP_FILES = `find dist -name \*.php`
dist: clean
@mkdir dist
@git archive master | (cd dist; tar xf -)
@for php in $(PHP_FILES); do\
echo "$$LICENSE" > $$php.new; \
tail -n+2 $$php >> $$php.new; \
mv $$php.new $$php; \
done
# if these fail, you may need to install the helper libraries - see "Running
# Tests" at http://readthedocs.org/projects/twilio-php/.
test:
@echo running tests
@phpunit --configuration tests/phpunit.xml
.PHONY: all clean dist test